From: cmccabe Date: Wed, 9 May 2012 22:19:30 +0000 (-0700) Subject: .bashrc: don't source file for non-bash shells X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d95075cb0c3da9dfcefcd612f9fc081b16ea08b;p=cmccabe-etc .bashrc: don't source file for non-bash shells Signed-off-by: Colin McCabe --- diff --git a/.bashrc b/.bashrc index b424553..ca8b97a 100644 --- 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