Fix kubie killing ssh agent.

This commit is contained in:
Alex Manning 2023-10-03 17:03:01 +01:00
parent 0e6426ef7e
commit 225f773ae1
Signed by: alex
GPG key ID: 1E325A228EB28358
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,6 @@
{ {
"coc.preferences.extensionUpdateCheck": "weekly",
"rust-client.disableRustup": true, "rust-client.disableRustup": true,
"javascript.format.enabled": false, "javascript.format.enabled": false,
@ -13,5 +15,4 @@
"jedi.enable": true, "jedi.enable": true,
"suggest.noselect": true, "suggest.noselect": true,
} }

View file

@ -6,7 +6,6 @@ SSH_ENV=$HOME/.ssh/environment.`hostname`
start_agent () start_agent ()
{ {
# $1 Socket path to bind to. # $1 Socket path to bind to.
# If not running interactively, don't do anything else # If not running interactively, don't do anything else
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
@ -31,6 +30,11 @@ load_keys ()
fi 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 # Source SSH settings, if applicable
# If a ssh auth socket exists at this point, it must be from a forwarded agent. # 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"* ]] if [ -n "${SSH_AUTH_SOCK+set}" ] && [[ ${SSH_AUTH_SOCK} != *"com.apple.launchd"* ]]