aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-31 11:43:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-31 11:43:15 -0300
commit3f0a6f68de0e15dc82d541a6caec6a0c408b61cb (patch)
tree555dd2871ce5173395fb8ed2b2f6a64886af4981
parent9487d403eb41a9018f477a85f6ca2e60aa7f634d (diff)
downloadprofile-3f0a6f68de0e15dc82d541a6caec6a0c408b61cb.tar.gz
profile-3f0a6f68de0e15dc82d541a6caec6a0c408b61cb.tar.bz2
Turn off auto-echo for bash's CDPATH
-rw-r--r--bashrc.dot.link11
-rw-r--r--terminal.dot.link4
2 files changed, 13 insertions, 2 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
diff --git a/terminal.dot.link b/terminal.dot.link
index bda0e57..941c005 100644
--- a/terminal.dot.link
+++ b/terminal.dot.link
@@ -6,8 +6,8 @@
# Load ANSI Art
#cat $HOME/themes/ans/slack.ans
-# Make sure to load the profile
-source $HOME/.profile
+# Load the default bash initialization
+source $HOME/.bashrc
# Default window title
TITLE="terminal"