aboutsummaryrefslogtreecommitdiff
path: root/bashrc.dot.link
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc.dot.link')
-rw-r--r--bashrc.dot.link11
1 files changed, 11 insertions, 0 deletions
diff --git a/bashrc.dot.link b/bashrc.dot.link
index 64afdaa..ed3e361 100644
--- a/bashrc.dot.link
+++ b/bashrc.dot.link
@@ -2,5 +2,16 @@
# Bash rc file
#
+# See http://superuser.com/questions/90535/how-do-i-turn-of-auto-echo-in-bash-when-i-cd
+function cd {
+ if [ -z "$*" ]; then
+ destination=~
+ else
+ destination=$*
+ fi
+
+ builtin cd "${destination}" > /dev/null
+}
+
# Load the profile
. $HOME/.profile