Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
24ac1aa3
Commit
24ac1aa3
authored
Aug 21, 2016
by
Piotr Gaczkowski
Committed by
Marc Cornellà
Aug 21, 2016
Browse files
Clobber ssh environment regardless of setopt (#5322)
parent
76821f50
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/ssh-agent/ssh-agent.plugin.zsh
View file @
24ac1aa3
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment