refactor(zsh): set expiration for ssh agent keys to 24 hours

This commit is contained in:
Price Hiller 2023-09-07 00:14:09 -05:00
parent 2bdb241b17
commit 75cbfa31d6
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -60,8 +60,8 @@ export REPORTTIME=600
### SSH ###
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
ssh-add -l >/dev/null
[ $? -ge 2 ] && ssh-agent -a "$SSH_AUTH_SOCK" -t 24h >/dev/null
### FZF ###