Установка описания терминала kitty, если его нет в системе

This commit is contained in:
Andrei Astafev 2021-12-12 13:03:03 +03:00
parent 4b1fbca444
commit e6823abbb3
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# Автоматическая установка описания терминала xterm-kitty
if [[ "x${TERM}" = "xxterm-kitty" ]]; then
if ! infocmp "xterm-kitty" > /dev/null 2>&1 ; then
if ! sudo apt-get install kitty-terminfo > /dev/null 2>&1 ; then
mkdir -p "${HOME}/.terminfo/x"
cp -ap "${ZDOTDIR}/term/xterm-kitty" "${HOME}/.terminfo/x"
fi
fi
fi

BIN
terminfo/xterm-kitty Normal file

Binary file not shown.