Проверка работы в tmux или screen

This commit is contained in:
Andrei Astafev 2021-12-13 14:25:34 +03:00
parent 38c56ac271
commit 0348458331

View File

@ -95,7 +95,7 @@ kitty-install-terminfo() {
echo "Close terminal and start again."
}
if [[ "x${TERM}" = "xxterm-kitty" ]]; then
if [[ "x${TERM}" = "xxterm-kitty" ]] || [[ "x${TERM}" == *"screen"* ]] || [[ "x${TERM}" == *"tmux"* ]]; then
if infocmp "xterm-kitty" > /dev/null 2>&1 ; then
unset -f kitty-install-terminfo
fi