1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 08:50:08 +00:00

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>
This commit is contained in:
Maximilian Güntner 2016-07-27 12:04:47 +02:00 committed by Marc Cornellà
parent e96b12666a
commit 0c60f421cb

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