]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/bashrc
Make check for "interactive shells" more robust
[ConfigScripts.git] / sys / bashrc
index 559cc8c54b85f96ce1d3ad8f18cd012de2c85dc0..40087fe34706f1da620ee249067091579d0c3660 100644 (file)
@@ -13,7 +13,10 @@ BASHRCREAD="true"
 [ -e ~/.ConfigScripts.debug ] && echo " >> /etc/bash.bashrc ..."
 
 # Interactive shell?
-[ "$PS1" ] || return
+case "$-" in
+       *i*) ;;
+       *) return ;;
+esac
 
 # Initialize keychain(1) ssh-agent and gpg-agent helper
 type -t keychain >/dev/null \