From e1b88c96472ef35c95321e612c7e4bb221bdcf58 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Fri, 29 Aug 2025 20:59:59 -0400 Subject: [PATCH] update ssh-agent configuration --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 06ac11c..cf2a39b 100644 --- a/.zshrc +++ b/.zshrc @@ -40,9 +40,14 @@ export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'" zstyle ':omz:plugins:alias-finder' autoload yes zstyle ':omz:plugins:alias-finder' exact yes zstyle ':omz:plugins:ssh-agent' agent-forwarding yes -zstyle ':omz:plugins:ssh-agent' lifetime 2h +zstyle ':omz:plugins:ssh-agent' lifetime 1h zstyle ':omz:plugins:ssh-agent' quiet yes +# Only export SSH_AUTH_SOCK if agent is running +if [ -S "$SSH_AUTH_SOCK" ]; then + export SSH_AUTH_SOCK +fi + # DISABLE_AUTO_TITLE="true" ENABLE_CORRECTION="true"