fix: alsp fix kitten ssh in zinit

This commit is contained in:
Yingjie Wang 2024-08-18 00:23:22 -04:00
parent adab24d93f
commit 526979a9f9

View File

@ -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