From 75cbfa31d69c50b6a6d3afd201d25dfd700f3b43 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 7 Sep 2023 00:14:09 -0500 Subject: [PATCH] refactor(zsh): set expiration for ssh agent keys to 24 hours --- dots/.config/zsh/config/profile/profile/env.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dots/.config/zsh/config/profile/profile/env.zsh b/dots/.config/zsh/config/profile/profile/env.zsh index 516af811..5b31b9ea 100644 --- a/dots/.config/zsh/config/profile/profile/env.zsh +++ b/dots/.config/zsh/config/profile/profile/env.zsh @@ -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 ###