From 109864429cea5763e57c77f060835bfcdbefb09f Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Wed, 18 Oct 2017 17:30:16 -0700 Subject: [PATCH] ssh: fix loading of ssh identities when none are explicitly defined --- modules/ssh/init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ssh/init.zsh b/modules/ssh/init.zsh index 6e37b698..08edce57 100644 --- a/modules/ssh/init.zsh +++ b/modules/ssh/init.zsh @@ -50,9 +50,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 # passphrase. 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 - ssh-add "${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}}" 2> /dev/null + ssh-add ${_ssh_identities:+$_ssh_dir/${^_ssh_identities[@]}} 2> /dev/null fi fi