1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Systemd-based ssh agent management.

This commit is contained in:
2018-05-02 13:06:29 +02:00
parent 64824bf4a9
commit a49c6123b1
2 changed files with 15 additions and 0 deletions

View File

@@ -8,6 +8,11 @@ if [[ -o interactive ]] && [[ -n $SSH_TTY ]] && [[ -z $TMUX ]] && type tmux &> /
exit $?
fi
# Check for service-managed keyring
if [[-z $SSH_AUTH_SOCK ]] && [[ -S $XDG_RUNTIME_DIR/ssh-agent.socket ]]; then
export SSH_AUTH_SOCKET="$XDG_RUNTIME_DIR/ssh-agent.socket"
fi
#######################
# Initialize keyboard #
#######################