mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
made things safer, VERY bad outcome if it runs with an error, chmod $HOME 600
This commit is contained in:
parent
110465a320
commit
eace590260
1 changed files with 1 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ function _plugin__start_agent()
|
||||||
|
|
||||||
# start ssh-agent and setup environment
|
# start ssh-agent and setup environment
|
||||||
/usr/bin/env ssh-agent | sed 's/^echo/#echo/' > ${_plugin__ssh_env}
|
/usr/bin/env ssh-agent | sed 's/^echo/#echo/' > ${_plugin__ssh_env}
|
||||||
|
[[ ! -f ${_plugin__ssh_env} ]] && return 1
|
||||||
chmod 600 ${_plugin__ssh_env} . ${_plugin__ssh_env} > /dev/null
|
chmod 600 ${_plugin__ssh_env} . ${_plugin__ssh_env} > /dev/null
|
||||||
|
|
||||||
# load identies
|
# load identies
|
||||||
|
|
@ -55,4 +56,3 @@ fi
|
||||||
unfunction _plugin__start_agent
|
unfunction _plugin__start_agent
|
||||||
unset _plugin__forwarding
|
unset _plugin__forwarding
|
||||||
unset _plugin__ssh_env
|
unset _plugin__ssh_env
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue