Prevent nnn previews using kitty over ssh

This commit is contained in:
Daniel Flanagan 2021-11-11 11:54:42 -06:00
parent 466c011bb7
commit 6005e2c287
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -14,6 +14,9 @@ else
TERMINAL="${TERMINAL:-xterm}"
fi
# we can't actually work if we're about to try the kitty method over SSH, so just exit
[ -n "$SSH_CONNECTION" ] && [ "$TERMINAL" = "kitty" ] && exit 0
if [ -z "$SPLIT" ] && [ $(($(tput lines) * 2)) -gt "$(tput cols)" ]; then
SPLIT='h'
elif [ "$SPLIT" != 'h' ]; then