summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-08-21 00:12:39 +0200
committerMarc Cornellà <marc.cornella@live.com>2016-09-03 20:49:55 +0200
commit81e73e3d18ebf83d32e9c5e0edc2a26556066955 (patch)
tree3ef5175b3fb357bfd279d3cc0b4775f50e0eb26f
parent0c60f421cbbdf673fada8fc6e795d069d1ae972e (diff)
downloadzsh-81e73e3d18ebf83d32e9c5e0edc2a26556066955.tar.gz
zsh-81e73e3d18ebf83d32e9c5e0edc2a26556066955.tar.bz2
zsh-81e73e3d18ebf83d32e9c5e0edc2a26556066955.zip
Delete useless `/usr/bin/env` in ssh-agent
-rw-r--r--plugins/ssh-agent/ssh-agent.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
index 24b6fd9d0..6fdeb2725 100644
--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
+++ b/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