]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/bashrc
Don't read /var/lib/$ME/bash.bashrc in non-interactive shells
[ConfigScripts.git] / sys / bashrc
index 77bc8372866f75732f7d23e448c8a32282e5c47e..3b9e742a2cdb767d7145da474f01c8b51f18c02a 100644 (file)
@@ -10,10 +10,7 @@ BASHRCREAD="true"
 [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile
 
 # Interactive shell?
-if [ ! "$PS1" ]; then
-       [ -r "/var/lib/$ME/bash.bashrc" ] && source /var/lib/$ME/bash.bashrc
-       return
-fi
+[ "$PS1" ] || return
 
 # Shell options
 shopt -s checkwinsize