From 563abe268b4d39deb4c6e360a8e3832891c7bb17 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Aug 2015 12:56:22 +1200 Subject: Fix local var --- bash/bashrc.d/bd.bash | 1 + 1 file changed, 1 insertion(+) (limited to 'bash') 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 -- cgit v1.2.3