Browse Source

Delete useless `/usr/bin/env` in ssh-agent

Marc Cornellà 7 years ago
parent
commit
81e73e3d18
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/ssh-agent/ssh-agent.plugin.zsh

+ 2 - 2
plugins/ssh-agent/ssh-agent.plugin.zsh

@@ -37,7 +37,7 @@ function _plugin__start_agent()
   zstyle -s :omz:plugins:ssh-agent lifetime lifetime
 
   # start ssh-agent and setup environment
-  /usr/bin/env ssh-agent ${lifetime:+-t} ${lifetime} | sed 's/^echo/#echo/' >! ${_plugin__ssh_env}
+  ssh-agent ${lifetime:+-t} ${lifetime} | sed 's/^echo/#echo/' >! ${_plugin__ssh_env}
   chmod 600 ${_plugin__ssh_env}
   . ${_plugin__ssh_env} > /dev/null
 
@@ -45,7 +45,7 @@ function _plugin__start_agent()
   zstyle -a :omz:plugins:ssh-agent identities identities
   echo starting ssh-agent...
 
-  /usr/bin/env ssh-add $HOME/.ssh/${^identities}
+  ssh-add $HOME/.ssh/${^identities}
 }
 
 # Get the filename to store/lookup the environment from