mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30:32 +01:00
Support gcr-provided ssh agent
This commit is contained in:
@@ -22,8 +22,12 @@ fi
|
||||
unset -f want_multiplexer
|
||||
|
||||
# Check for service-managed keyring
|
||||
if [[ -z $SSH_AUTH_SOCK ]] && [[ -S $XDG_RUNTIME_DIR/ssh-agent.socket ]]; then
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
if [[ -z $SSH_AUTH_SOCK ]]; then
|
||||
if [[ -S $XDG_RUNTIME_DIR/ssh-agent.socket ]]; then
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
elif [[ -S $XDG_RUNTIME_DIR/gcr/ssh ]]; then
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
||||
fi
|
||||
fi
|
||||
|
||||
#######################
|
||||
|
||||
Reference in New Issue
Block a user