diff --git a/.zshrc b/.zshrc index 35fe9e8..1430337 100644 --- a/.zshrc +++ b/.zshrc @@ -1,4 +1,8 @@ -eval `keychain --eval --agents ssh id_rsa` +if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then + SESSION_TYPE=ssh +else + eval `keychain --eval --agents ssh id_rsa` +fi # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n]