diff options
Diffstat (limited to 'profile.dot.link')
-rw-r--r-- | profile.dot.link | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link index ef4c187..4beea3c 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -31,6 +31,19 @@ export PATH=$PATH # See http://www.caliban.org/bash/#bashtips 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 + + builtin cd "${destination}" > /dev/null + } +fi + # Editor variables, avoiding "Avoiding protocol specified" error export EDITOR="vim -X" |