diff --git a/.bashrc b/.bashrc index bcadfe5..d69902b 100755 --- a/.bashrc +++ b/.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 #--------------------------------------------------------------------------------