]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/bashrc
Only call keychain(1) when shell is interactive
[ConfigScripts.git] / sys / bashrc
index 911327fde5db176465cdb5f1cc6c925825742fc5..e3a45dc8196db3f71540e596a9a601ed79b3a501 100644 (file)
@@ -9,13 +9,13 @@ BASHRCREAD="true"
 
 [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile
 
+# Interactive shell?
+[ "$PS1" ] || return
+
 # Initialize keychain(1) ssh-agent and gpg-agent helper
 type keychain >/dev/null 2>&1 \
        && eval `keychain --agents ssh --eval --quick --quiet`
 
-# Interactive shell?
-[ "$PS1" ] || return
-
 # Common command aliases (1/2)
 alias ".."="cd .."
 alias "ls"="ls -F"