1
0
Fork 0

fix: Don't alias kitty when SSHing in kitty

main
Ambrose Chua 2022-01-07 19:27:40 +08:00
parent 2a8968377e
commit 09d422f371
1 changed files with 1 additions and 1 deletions

2
.zshrc
View File

@ -102,7 +102,7 @@ if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
alias icat="imgcat"
alias ssh="TERM=xterm-256color ssh"
fi
if [[ "$TERM" == "xterm-kitty" ]]; then
if [[ "$TERM" == "xterm-kitty" ]] && [[ -f "$(which kitty 2>/dev/null)" ]]; then
alias icat="kitty +kitten icat"
alias ssh="kitty +kitten ssh"
fi