81e73e3d18ebf83d32e9c5e0edc2a26556066955
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Delete useless `/usr/bin/env` in ssh-agent
Diff
1diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
2index 24b6fd9d07194d7103f53f42e7677669c208453f..6fdeb2725afef377027ce0def1f7317e74f31d12 100644
3--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
4+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
5@@ -37,7 +37,7 @@ function _plugin__start_agent()
6 zstyle -s :omz:plugins:ssh-agent lifetime lifetime
7
8 # start ssh-agent and setup environment
9- /usr/bin/env ssh-agent ${lifetime:+-t} ${lifetime} | sed 's/^echo/#echo/' >! ${_plugin__ssh_env}
10+ ssh-agent ${lifetime:+-t} ${lifetime} | sed 's/^echo/#echo/' >! ${_plugin__ssh_env}
11 chmod 600 ${_plugin__ssh_env}
12 . ${_plugin__ssh_env} > /dev/null
13
14@@ -45,7 +45,7 @@ function _plugin__start_agent()
15 zstyle -a :omz:plugins:ssh-agent identities identities
16 echo starting ssh-agent...
17
18- /usr/bin/env ssh-add $HOME/.ssh/${^identities}
19+ ssh-add $HOME/.ssh/${^identities}
20 }
21
22 # Get the filename to store/lookup the environment from