diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-08-05 12:56:22 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-08-05 12:56:22 +1200 |
commit | 563abe268b4d39deb4c6e360a8e3832891c7bb17 (patch) | |
tree | 07036b558143315e6e775b8922eadb5950e46c14 /bash/bashrc.d | |
parent | Fix order of Bash functions (diff) | |
download | dotfiles-563abe268b4d39deb4c6e360a8e3832891c7bb17.tar.gz dotfiles-563abe268b4d39deb4c6e360a8e3832891c7bb17.zip |
Fix local var
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/bd.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bashrc.d/bd.bash b/bash/bashrc.d/bd.bash index 60b55580..1825ae9c 100644 --- a/bash/bashrc.d/bd.bash +++ b/bash/bashrc.d/bd.bash @@ -1,5 +1,6 @@ # Move back up the directory tree to the first directory matching the name bd() { + local dir # If there are no arguments, we just move up one directory (cd ..) if (($#)) ; then |