Allow tmux inside kitty without KITTY_LISTEN_ON set

This commit is contained in:
Luuk van Baal 2021-07-05 15:40:18 +02:00
parent 77c16ac143
commit 4abced6142
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ else
clear
printf "No FIFO available! (\$NNN_FIFO='%s')\nPlease read Usage in preview-tui." "$NNN_FIFO"
cfg=$(stty -g); stty raw -echo; head -c 1; stty "$cfg"
elif [ "$KITTY_WINDOW_ID" ] && [ -z "$KITTY_LISTEN_ON" ]; then
elif [ "$KITTY_WINDOW_ID" ] && [ -z "$TMUX" ] && [ -z "$KITTY_LISTEN_ON" ]; then
clear
printf "\$KITTY_LISTEN_ON not set!\nPlease read Usage in preview-tui."
cfg=$(stty -g); stty raw -echo; head -c 1; stty "$cfg"