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

feat(module/ssh): add globbing for ssh-add param

fixes #2000

Signed-off-by: Shea690901 <ginny690901@hotmail.de>
This commit is contained in:
Shea690901 2022-04-07 21:40:04 +02:00 committed by Indrajit Raychaudhuri
parent 3ea20cfbe8
commit 51c4ff6de4

View File

@ -52,9 +52,9 @@ if ssh-add -l 2>&1 | grep -q 'The agent has no identities'; then
# program specified by SSH_ASKPASS and open an X11 window to read the # program specified by SSH_ASKPASS and open an X11 window to read the
# passphrase. # passphrase.
if [[ -n "$DISPLAY" && -x "$SSH_ASKPASS" ]]; then if [[ -n "$DISPLAY" && -x "$SSH_ASKPASS" ]]; then
ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} < /dev/null 2> /dev/null ssh-add ${_ssh_identities:+$_ssh_dir/${^~_ssh_identities[@]}} < /dev/null 2> /dev/null
else else
ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} 2> /dev/null ssh-add ${_ssh_identities:+$_ssh_dir/${^~_ssh_identities[@]}} 2> /dev/null
fi fi
fi fi