Make keychain only launch on non-SSH sessions
This commit is contained in:
parent
43871160e5
commit
0bfd198a2a
1 changed files with 5 additions and 1 deletions
6
.zshrc
6
.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.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
|
Loading…
Add table
Reference in a new issue