aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bash/bashrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index b65f86ff..c062e20c 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -152,8 +152,10 @@ alias diff='diff -u'
function cd {
if [[ -n "$2" ]]; then
builtin cd "${PWD/$1/$2}"
+ elif [[ -n "$1" ]]; then
+ builtin cd "$1"
else
- builtin cd "$*"
+ builtin cd
fi
}