浏览代码

Clobber ssh environment regardless of setopt (#5322)

Piotr Gaczkowski 8 年之前
父节点
当前提交
24ac1aa348
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/ssh-agent/ssh-agent.plugin.zsh

+ 1 - 1
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}
+  /usr/bin/env ssh-agent ${lifetime:+-t} ${lifetime} | sed 's/^echo/#echo/' >! ${_plugin__ssh_env}
   chmod 600 ${_plugin__ssh_env}
   . ${_plugin__ssh_env} > /dev/null