more resilient keychain initialization
This commit is contained in:
parent
f2cf49ff88
commit
5bb3af14ed
1 changed files with 6 additions and 6 deletions
|
|
@ -377,8 +377,8 @@ compinit
|
|||
|
||||
# 10. SSH Keychain
|
||||
# ================
|
||||
if command_exists keychain; then
|
||||
keychain --nogui ~/.ssh/id_rsa*~*.pub
|
||||
if command_exists keychain && [[ -d ~/.ssh ]]; then
|
||||
keychain --nogui ~/.ssh/id_rsa*~*.pub(N)
|
||||
KEYCHAINFILE="$HOME/.keychain/$(hostname)-sh"
|
||||
if [[ -f $KEYCHAINFILE ]]; then
|
||||
source $KEYCHAINFILE >/dev/null
|
||||
|
|
|
|||
Loading…
Reference in a new issue