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