From 0977eeb707d5fd4d4cfd6cd52d6ac515c45fb37c Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 17 Dec 2016 08:05:08 -0800 Subject: [PATCH] automatically add ssh keys to the agent on login --- zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zshrc b/zshrc index 37ada10..6907af1 100755 --- a/zshrc +++ b/zshrc @@ -288,6 +288,9 @@ if is_interactive && command_exists keychain && [[ -d ~/.ssh ]]; then source $KEYCHAINFILE >/dev/null fi fi +if is_interactive && command_exists ssh-add && [[ -d ~/.ssh ]]; then + ssh-add -A +fi # 12. rbenv and pyenv # ===================