24ac1aa3481e4c81411fc9462c3cd4a9b25e9da7
- Author
- Piotr Gaczkowski <DoomHammerNG@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
Clobber ssh environment regardless of setopt (#5322)
Diff
1diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
2index 610ad34dc9c03a40e58e855524d52a41d1ca150b..b77b9ee78dd4f2f86b54fd3a5a18378f1da68f7b 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+ /usr/bin/env 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