Prevent nnn previews using kitty over ssh
This commit is contained in:
parent
466c011bb7
commit
6005e2c287
|
@ -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
|
||||
|
|
Reference in a new issue