From 378c7f31b92c1ec1c0e8d4ca91d5d686412f40cd Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Wed, 5 Nov 2014 02:16:14 +0800 Subject: [PATCH] Run .bashrc only if running bash. --- .profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.profile b/.profile index 799f276..cfdf994 100644 --- a/.profile +++ b/.profile @@ -1,2 +1,4 @@ # -source ${HOME}/.bashrc +if [ "$SHELL" == "/bin/bash" -o "$SHELL" == "/usr/local/bin/bash" ]; then + source ${HOME}/.bashrc +fi