diff options
Diffstat (limited to 'profile.dot.link')
-rw-r--r-- | profile.dot.link | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/profile.dot.link b/profile.dot.link index 8ca4fdd..4bb131a 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -32,17 +32,15 @@ export PATH=$PATH export CDPATH=".:~:~/code:~/data:~/file:~/apps:/var/www/data" # See http://superuser.com/questions/90535/how-do-i-turn-of-auto-echo-in-bash-when-i-cd -if [ ! -z "$BASH" ]; then - function cd { - if [ -z "$*" ]; then - destination=~ - else - destination=$* - fi +cd() { + if [ -z "$*" ]; then + destination=~ + else + destination=$* + fi - builtin cd "${destination}" > /dev/null - } -fi + command cd "${destination}" > /dev/null +} # Default editor #if [ ! -z "$DISPLAY" ]; then |