run keychain for all keys in ~/.ssh
This commit is contained in:
parent
c076164572
commit
f2cf49ff88
1 changed files with 1 additions and 7 deletions
|
|
@ -377,14 +377,8 @@ compinit
|
|||
|
||||
# 10. SSH Keychain
|
||||
# ================
|
||||
# OS X includes keychain now, cool.
|
||||
if command_exists keychain; then
|
||||
if [[ -f ~/.ssh/id_rsa ]]; then
|
||||
keychain --nogui ~/.ssh/id_rsa
|
||||
fi
|
||||
if [[ -f ~/.ssh/id_rsa-dreamhost ]]; then
|
||||
keychain --nogui ~/.ssh/id_rsa-dreamhost
|
||||
fi
|
||||
keychain --nogui ~/.ssh/id_rsa*~*.pub
|
||||
KEYCHAINFILE="$HOME/.keychain/$(hostname)-sh"
|
||||
if [[ -f $KEYCHAINFILE ]]; then
|
||||
source $KEYCHAINFILE >/dev/null
|
||||
|
|
|
|||
Loading…
Reference in a new issue