diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-21 14:43:04 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-21 14:43:04 +1300 |
commit | 2d4b71589a8ac5c47a27b26f67e1ba9638372b66 (patch) | |
tree | a7498df718578296fc7a733f66af39a7ca523333 /bash | |
parent | Remove directory change from pass completion (diff) | |
download | dotfiles-2d4b71589a8ac5c47a27b26f67e1ba9638372b66.tar.gz dotfiles-2d4b71589a8ac5c47a27b26f67e1ba9638372b66.zip |
Strip trailing whitespace
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/sd.bash | 4 | ||||
-rw-r--r-- | bash/bashrc.d/vr.bash | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/sd.bash b/bash/bashrc.d/sd.bash index a838f94d..70903246 100644 --- a/bash/bashrc.d/sd.bash +++ b/bash/bashrc.d/sd.bash @@ -60,7 +60,7 @@ sd() { # If we have one argument, it's easy, we just try to move to that one if (($# == 1)) ; then dirname=$1 - + # If no argument, the user is lazy; if there's only one sibling, we'll do # what they mean and switch to it elif (($# == 0)) ; then @@ -103,7 +103,7 @@ sd() { "$FUNCNAME" "$FUNCNAME" >&2 return 2 fi - + # Try to change into the determined directory builtin cd "${opts[@]}" ../"$dirname" } diff --git a/bash/bashrc.d/vr.bash b/bash/bashrc.d/vr.bash index 3eb1fbdd..c63e174e 100644 --- a/bash/bashrc.d/vr.bash +++ b/bash/bashrc.d/vr.bash @@ -20,7 +20,7 @@ vr() { "$FUNCNAME" "$path" return 1 fi - + # Ask Git the top level local git_root git_root=$(cd -- "$path" && git rev-parse --show-toplevel 2>/dev/null) |