From 834826ed3466273d04181bcd205968fcf562e85d Mon Sep 17 00:00:00 2001 From: Antoine Dechaume Date: Tue, 19 May 2015 15:49:38 +0200 Subject: [PATCH] Fix #220 Just avoid sourcing bash-it when not on a login shell. --- template/bash_profile.template.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template/bash_profile.template.bash b/template/bash_profile.template.bash index 9fda847e..e0750bcc 100755 --- a/template/bash_profile.template.bash +++ b/template/bash_profile.template.bash @@ -27,4 +27,6 @@ export SCM_CHECK=true #export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt # Load Bash It -source $BASH_IT/bash_it.sh +if shopt -q login_shell; then + source $BASH_IT/bash_it.sh +fi