zprofile: set ssh-agent's secret lifetime to 4h

This commit is contained in:
surtur 2022-10-17 21:08:17 +02:00
parent a34e3150e4
commit 8428f754d4
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -28,7 +28,7 @@ export kee="surtur"
export SSH_KEY_PATH="$HOME/.ssh/$kee"
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent` > /dev/null
eval `ssh-agent -t4h` > /dev/null
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi