1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 21:58:00 +00:00

Fixed ssh-add not using SSH_ASKPASS

This commit is contained in:
Philipp A 2017-06-19 20:54:54 +02:00 committed by Kaleb Elwert
parent 87868441eb
commit 5ef10f7658

View File

@ -40,9 +40,9 @@ fi
if ssh-add -l 2>&1 | grep -q 'The agent has no identities'; then if ssh-add -l 2>&1 | grep -q 'The agent has no identities'; then
zstyle -a ':prezto:module:ssh:load' identities '_ssh_identities' zstyle -a ':prezto:module:ssh:load' identities '_ssh_identities'
if (( ${#_ssh_identities} > 0 )); then if (( ${#_ssh_identities} > 0 )); then
ssh-add "$_ssh_dir/${^_ssh_identities[@]}" 2> /dev/null ssh-add "$_ssh_dir/${^_ssh_identities[@]}" < /dev/null 2> /dev/null
else else
ssh-add 2> /dev/null ssh-add < /dev/null 2> /dev/null
fi fi
fi fi