Skip to content

Commit

Permalink
ssh-agent: Use /usr/bin/env to find ssh-add
Browse files Browse the repository at this point in the history
This change is important when ssh-add is not inside /usr/bin e.g.
on NixOS.

Signed-off-by: Maximilian Güntner <[email protected]>
  • Loading branch information
Maximilian Güntner authored and mcornella committed Sep 3, 2016
1 parent e96b126 commit 0c60f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ssh-agent/ssh-agent.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c60f42

Please sign in to comment.