.bashrc: don't source file for non-bash shells
authorcmccabe <cmccabe@ubuntu.(none)>
Wed, 9 May 2012 22:19:30 +0000 (15:19 -0700)
committercmccabe <cmccabe@vm0.local>
Mon, 20 Aug 2012 22:17:03 +0000 (15:17 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

.bashrc

diff --git a/.bashrc b/.bashrc
index b424553..ca8b97a 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,5 +1,8 @@
 # .bashrc
 
+if [ "x$BASH_VERSION" = "x" ]; then
+        :
+else
 # Source global definitions
 if [ -f /etc/bashrc ]; then
        . /etc/bashrc
@@ -48,3 +51,4 @@ export HISTIGNORE="[ ]*"
 
 # Append history list of current session to HISTFILE
 shopt -s histappend
+fi