]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Only call keychain(1) when shell is interactive
authorAlexander Barton <alex@barton.de>
Fri, 18 Apr 2014 14:16:18 +0000 (16:16 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 18 Apr 2014 14:16:18 +0000 (16:16 +0200)
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"