]> arthur.barton.de Git - ConfigScripts.git/commitdiff
Let keychain(1) inherit forwarded agents master
authorAlexander Barton <alex@barton.de>
Sun, 1 May 2016 17:39:42 +0000 (19:39 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 1 May 2016 17:39:42 +0000 (19:39 +0200)
This is how the ax-zsh plugin handles it and makes sense :-)

sys/bashrc

index 0c49948d5dcda9ba94490b9f9b07007f0909f2ef..190e1df293cb4e8146a0afb1f04a2106ceea441e 100644 (file)
@@ -21,7 +21,7 @@ esac
 # Initialize keychain(1) ssh-agent and gpg-agent helper
 [ -e ~/.ConfigScripts.debug ] && echo "     - keychain ..."
 type -t keychain >/dev/null \
-       && eval `keychain --agents ssh --eval --quick --quiet`
+       && eval "`keychain --agents ssh --eval --inherit any-once --quick --quiet`"
 
 # Common command aliases (1/2)
 alias ".."="cd .."