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
81e73e3d
Commit
81e73e3d
authored
Aug 21, 2016
by
Marc Cornellà
Browse files
Delete useless `/usr/bin/env` in ssh-agent
parent
0c60f421
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/ssh-agent/ssh-agent.plugin.zsh
View file @
81e73e3d
...
@@ -37,7 +37,7 @@ function _plugin__start_agent()
...
@@ -37,7 +37,7 @@ function _plugin__start_agent()
zstyle
-s
:omz:plugins:ssh-agent lifetime lifetime
zstyle
-s
:omz:plugins:ssh-agent lifetime lifetime
# start ssh-agent and setup environment
# 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
}
chmod
600
${
_plugin__ssh_env
}
.
${
_plugin__ssh_env
}
>
/dev/null
.
${
_plugin__ssh_env
}
>
/dev/null
...
@@ -45,7 +45,7 @@ function _plugin__start_agent()
...
@@ -45,7 +45,7 @@ function _plugin__start_agent()
zstyle
-a
:omz:plugins:ssh-agent identities identities
zstyle
-a
:omz:plugins:ssh-agent identities identities
echo
starting ssh-agent...
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
# Get the filename to store/lookup the environment from
...
...
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