refactor(zsh): place ssh-agent sock in XDG_RUNTIME_DIR

This commit is contained in:
Price Hiller 2023-05-03 16:28:43 -05:00
parent 01c9dc628a
commit a6574a75cf
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -9,7 +9,7 @@ export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2
export ZSH_AUTOSUGGEST_STRATEGY=(history completion) export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
### SSH ### ### SSH ###
export SSH_AUTH_SOCK="${HOME}/.ssh/ssh-agent.sock" export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.sock"
ssh-add -l >/dev/null 2>&1 ssh-add -l >/dev/null 2>&1
[ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null 2>&1 [ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null 2>&1