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
Ohmyzsh
Commits
dd4f5701
Commit
dd4f5701
authored
Nov 05, 2013
by
nishigori
Browse files
Fix bad ps syntax in ssh-agent plugin
parent
b2376c37
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/ssh-agent/ssh-agent.plugin.zsh
View file @
dd4f5701
...
...
@@ -57,7 +57,7 @@ if [[ ${_plugin__forwarding} == "yes" && -n "$SSH_AUTH_SOCK" ]]; then
elif
[
-f
"
${
_plugin__ssh_env
}
"
]
;
then
# Source SSH settings, if applicable
.
${
_plugin__ssh_env
}
>
/dev/null
ps
-
x
|
grep
${
SSH_AGENT_PID
}
|
grep
ssh-agent
>
/dev/null
||
{
ps x |
grep
${
SSH_AGENT_PID
}
|
grep
ssh-agent
>
/dev/null
||
{
_plugin__start_agent
;
}
else
...
...
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