]> arthur.barton.de Git - ConfigScripts.git/blobdiff - sys/bashrc
Add support for keychain(1) ssh-agent and gpg-agent helper
[ConfigScripts.git] / sys / bashrc
index 09947a8cd88028ebc45958c8ecb6fbfba80c0f91..911327fde5db176465cdb5f1cc6c925825742fc5 100644 (file)
@@ -9,6 +9,10 @@ BASHRCREAD="true"
 
 [ -z "$PROFILEREAD" -a -r /etc/profile ] && source /etc/profile
 
+# 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