Prevent nnn previews using kitty over ssh
This commit is contained in:
parent
466c011bb7
commit
6005e2c287
|
@ -14,6 +14,9 @@ else
|
||||||
TERMINAL="${TERMINAL:-xterm}"
|
TERMINAL="${TERMINAL:-xterm}"
|
||||||
fi
|
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
|
if [ -z "$SPLIT" ] && [ $(($(tput lines) * 2)) -gt "$(tput cols)" ]; then
|
||||||
SPLIT='h'
|
SPLIT='h'
|
||||||
elif [ "$SPLIT" != 'h' ]; then
|
elif [ "$SPLIT" != 'h' ]; then
|
||||||
|
|
Reference in a new issue