From 526979a9f95d9b150f2e8c7b3d3a009e510b0d7d Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Sun, 18 Aug 2024 00:23:22 -0400 Subject: [PATCH] fix: alsp fix kitten ssh in zinit --- .zshrc_zinit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc_zinit b/.zshrc_zinit index 70f73a4..d13af97 100644 --- a/.zshrc_zinit +++ b/.zshrc_zinit @@ -46,7 +46,9 @@ eval "$(fzf --zsh)" # Miscs # ----------------------------------------------------- # fix ssh if in kitty -[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh" +if [[ "$TERM" == "xterm-kitty" && -z "$SSH_CONNECTION" ]]; then + alias ssh="kitty +kitten ssh" +fi # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh