From 3c328e0dd61ba945dc9adb0c3721fd360c9117fd Mon Sep 17 00:00:00 2001 From: tombdf Date: Thu, 19 Dec 2024 17:05:16 +0100 Subject: [PATCH] Update .zshrc --- dot_zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_zshrc b/dot_zshrc index 3f58f51..d1368e6 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -140,10 +140,10 @@ if ! pgrep -u "$USER" ssh-agent > /dev/null; then fi export SSH_AUTH_SOCK=$(ssh-agent -s | grep -oP '(?<=SSH_AUTH_SOCK=)[^;]+') # Add the keys to the agent -if [ -f ~/.ssh/id_ed25519 ]; && ! ssh-add -l | grep -q id_ed25519; then +if [ -f ~/.ssh/id_ed25519 ] && ! ssh-add -l | grep -q id_ed25519; then ssh-add ~/.ssh/id_ed25519 > /dev/null 2>&1 fi -if [ -f ~/.ssh/hexasec ]; && ! ssh-add -l | grep -q hexasec; then +if [ -f ~/.ssh/hexasec ] && ! ssh-add -l | grep -q hexasec; then ssh-add ~/.ssh/hexasec > /dev/null 2>&1 fi