]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Don't read /var/lib/$ME/bash.bashrc in non-interactive shells
authorAlexander Barton <alex@barton.de>
Wed, 21 Jul 2010 13:09:30 +0000 (15:09 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 21 Jul 2010 13:09:30 +0000 (15:09 +0200)
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