Browse Source

Fix SSH agent identities check, close #19

master
Sorin Ionescu 13 years ago
parent
commit
e250df829e
  1. 6
      plugins/ssh-agent/init.zsh

6
plugins/ssh-agent/init.zsh

@ -35,10 +35,10 @@ function _ssh-agent-start() { @@ -35,10 +35,10 @@ function _ssh-agent-start() {
# Load identities.
zstyle -a ':omz:plugin:ssh-agent' identities 'identities'
if [[ ! -n "${identities}" ]]; then
ssh-add
if (( ${#identities} > 0 )); then
ssh-add "${HOME}/.ssh/${^identities[@]}"
else
ssh-add "${HOME}/.ssh/${^identities}"
ssh-add
fi
}

Loading…
Cancel
Save