From 466c011bb7822549421aac3418a9d121512d0d2b Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 11 Nov 2021 11:49:20 -0600 Subject: [PATCH] Prevent use of kittens over ssh for nnn previews --- common/nnn/plugins/preview | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/nnn/plugins/preview b/common/nnn/plugins/preview index 54c1ee6..d437c5e 100755 --- a/common/nnn/plugins/preview +++ b/common/nnn/plugins/preview @@ -4,7 +4,7 @@ SPLIT="$SPLIT" TERMINAL="$TERMINAL" USE_SCOPE="${USE_SCOPE:-0}" IN_KITTY=0 -[ -n "$KITTY_WINDOW_ID" ] && kitty @ ls --no-response >/dev/null 2>&1 && IN_KITTY=1 +[ -z "$SSH_CONNECTION" ] && [ -n "$KITTY_WINDOW_ID" ] && kitty @ ls --no-response >/dev/null 2>&1 && IN_KITTY=1 if [ -e "${TMUX%%,*}" ] && tmux -V | grep -q '[ -][3456789]\.'; then TERMINAL=tmux