Call correct ssh-add command

Instead of hard-coding ssh-add you should use /usr/bin/env so it runs the correct one (for instance if you installed openssh with brew on mac the old version breaks)
This commit is contained in:
Adam Lesperance 2015-08-28 09:46:59 -05:00
commit 917f629a60

View file

@ -45,7 +45,7 @@ function _plugin__start_agent()
zstyle -a :omz:plugins:ssh-agent identities identities zstyle -a :omz:plugins:ssh-agent identities identities
echo starting ssh-agent... echo starting ssh-agent...
/usr/bin/ssh-add $HOME/.ssh/${^identities} /usr/bin/env ssh-add $HOME/.ssh/${^identities}
} }
# Get the filename to store/lookup the environment from # Get the filename to store/lookup the environment from