Переписаны функции для обеспечения совместимости с mc и kitty

This commit is contained in:
2021-12-17 10:39:37 +03:00
parent 0348458331
commit 4c9802e35b
2 changed files with 12 additions and 19 deletions

View File

@@ -1,5 +1,11 @@
zcomet compinit
mc-kitty-add
if type 'kitty-install-terminfo' 2>/dev/null | grep -q 'function'; then kitty-install-terminfo; fi
# Обеспечение совместимости с терминалом kitty
# По возможности следует установить пакет kitty-terminfo
if ! infocmp "xterm-kitty" > /dev/null 2>&1 ; then
mkdir -p "${HOME}/.terminfo/x"
cp -ap "${ZDOTDIR}/terminfo/xterm-kitty" "${HOME}/.terminfo/x"
echo "Terminal description for xterm-kitty was installed."
echo "Close terminal and start again."
fi