Add code to exit .bashrc on non-interactive shells.
This commit is contained in:
parent
854ab0858d
commit
8f76e879b4
8
.bashrc
8
.bashrc
|
@ -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
|
||||
#--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue