feat(zsh): permit ssh-agent to be multi-session
This commit is contained in:
parent
bc1416472c
commit
f914897699
@ -9,7 +9,9 @@ export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2
|
||||
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
|
||||
### SSH ###
|
||||
eval "$(ssh-agent -s)" >/dev/null 2>&1
|
||||
export SSH_AUTH_SOCK="${HOME}/.ssh/ssh-agent.sock"
|
||||
ssh-add -l >/dev/null 2>&1
|
||||
[ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null
|
||||
|
||||
|
||||
### FZF ###
|
||||
|
Loading…
Reference in New Issue
Block a user