# Автоматическая установка описания терминала 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}/terminfo/xterm-kitty" "${HOME}/.terminfo/x" fi echo "Terminal description for xterm-kitty was installed." echo "Close terminal and start again." fi fi