Add code to exit .bashrc on non-interactive shells.

This commit is contained in:
Scott Wallace 2016-06-16 10:26:04 +01:00 committed by Scott Wallace
parent 854ab0858d
commit 8f76e879b4

View file

@ -1,3 +1,11 @@
#--------------------------------------------------------------------------------
# Exit for non-interactive sessions
#--------------------------------------------------------------------------------
if [ -z "$PS1" ]; then
return
fi
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
# Function to prepend PATH only if it doesn't already exist
#--------------------------------------------------------------------------------