From 8d95075cb0c3da9dfcefcd612f9fc081b16ea08b Mon Sep 17 00:00:00 2001 From: cmccabe Date: Wed, 9 May 2012 15:19:30 -0700 Subject: [PATCH] .bashrc: don't source file for non-bash shells Signed-off-by: Colin McCabe --- .bashrc | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) 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 -- 1.6.6.rc1.39.g9a42