mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 05:38:01 +00:00
Fix SSH agent identities check, close #19
This commit is contained in:
parent
02435bec3c
commit
e250df829e
@ -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…
Reference in New Issue
Block a user