diff options
author | Maximilian Güntner <code@maschinenpsychologe.de> | 2016-07-27 12:04:47 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-09-03 20:49:55 +0200 |
commit | 0c60f421cbbdf673fada8fc6e795d069d1ae972e (patch) | |
tree | 030f9036792a23db897719378e3e91c43ca9aea1 /plugins/ssh-agent/ssh-agent.plugin.zsh | |
parent | e96b12666af48a1a8fb881ed8f7151374603c941 (diff) | |
download | zsh-0c60f421cbbdf673fada8fc6e795d069d1ae972e.tar.gz zsh-0c60f421cbbdf673fada8fc6e795d069d1ae972e.tar.bz2 zsh-0c60f421cbbdf673fada8fc6e795d069d1ae972e.zip |
ssh-agent: Use /usr/bin/env to find ssh-add
This change is important when ssh-add is not inside /usr/bin e.g.
on NixOS.
Signed-off-by: Maximilian Güntner <code@maschinenpsychologe.de>
Diffstat (limited to 'plugins/ssh-agent/ssh-agent.plugin.zsh')
-rw-r--r-- | plugins/ssh-agent/ssh-agent.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh index b77b9ee78..24b6fd9d0 100644 --- a/plugins/ssh-agent/ssh-agent.plugin.zsh +++ b/plugins/ssh-agent/ssh-agent.plugin.zsh @@ -45,7 +45,7 @@ function _plugin__start_agent() zstyle -a :omz:plugins:ssh-agent identities identities 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 |