refactor(zsh): place ssh-agent sock in XDG_RUNTIME_DIR
This commit is contained in:
parent
01c9dc628a
commit
a6574a75cf
@ -9,7 +9,7 @@ export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2
|
||||
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
|
||||
### 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
|
||||
[ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null 2>&1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user