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