Fix kubie killing ssh agent.
This commit is contained in:
parent
0e6426ef7e
commit
225f773ae1
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
"coc.preferences.extensionUpdateCheck": "weekly",
|
||||
|
||||
"rust-client.disableRustup": true,
|
||||
|
||||
"javascript.format.enabled": false,
|
||||
|
@ -13,5 +15,4 @@
|
|||
|
||||
"jedi.enable": true,
|
||||
"suggest.noselect": true,
|
||||
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ SSH_ENV=$HOME/.ssh/environment.`hostname`
|
|||
start_agent ()
|
||||
{
|
||||
# $1 Socket path to bind to.
|
||||
|
||||
# If not running interactively, don't do anything else
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
|
@ -31,6 +30,11 @@ load_keys ()
|
|||
fi
|
||||
}
|
||||
|
||||
# If not running interactively, don't do anything else
|
||||
[[ $- != *i* ]] && return
|
||||
# If we are a subshell we should not do anything.
|
||||
[[ $0 != -* ]] && return
|
||||
|
||||
# Source SSH settings, if applicable
|
||||
# If a ssh auth socket exists at this point, it must be from a forwarded agent.
|
||||
if [ -n "${SSH_AUTH_SOCK+set}" ] && [[ ${SSH_AUTH_SOCK} != *"com.apple.launchd"* ]]
|
||||
|
|
Loading…
Reference in a new issue