From 949d81563fcbe21b16a2389203da67d9a97d1bd1 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 8 Feb 2022 09:51:12 -0800 Subject: [PATCH] [zshrc] Skip ssh-add when running in VS Code --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index f511d85..9098f6d 100755 --- a/zshrc +++ b/zshrc @@ -32,7 +32,7 @@ fi ### SSH keys # ============ -if mac; then +if mac && [[ "$TERM_PROGRAM" != "vscode" ]]; then ssh-add --apple-load-keychain fi