Use systemd ssh-agent user unit socket if available

This commit is contained in:
Dan Buch 2023-09-13 00:02:04 -04:00
parent 557e9c690d
commit 0dd992eb2f
Signed by: meatballhat
GPG Key ID: A12F782281063434

4
zshrc
View File

@ -36,6 +36,10 @@ COMPLETION_WAITING_DOTS="true"
# much faster. # much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true" # DISABLE_UNTRACKED_FILES_DIRTY="true"
if [[ -e "${XDG_RUNTIME_DIR}/ssh-agent.socket" ]]; then
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
fi
path=( path=(
$HOME/.rbenv/shims $HOME/.rbenv/shims
$HOME/.pyenv/shims $HOME/.pyenv/shims