From 2942c925ff0d2b3c36991362a8aea810f2baf4df Mon Sep 17 00:00:00 2001 From: Anton Volnuhin Date: Tue, 21 May 2024 17:38:48 +0300 Subject: [PATCH] hack for kitty --- run_onchange_after_install_main_deps.sh.tmpl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index eef7138..9dcee85 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -20,7 +20,10 @@ USER=$(whoami) STEP=1 cd -TERM="xterm-256color" +#short-term hack for kitty in early OSes +if [ "$TERM" == "xterm-kitty" ];then +export TERM="xterm-256color" +fi echo -e " @@ -111,7 +114,6 @@ new_line "Update caches and upgrade packages" {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} sudo apt-get update 2>&1|pad sudo DEBIAN_FRONTEND=noninteractive apt-get -o "Dpkg::Options::=--force-confold" -o "Dpkg::Options::=--force-confdef" upgrade -y --allow-downgrades --allow-remove-essential --allow-change-held-packages 2>&1|pad - sudo apt-get install software-properties-common -y 2>&1|pad {{ else if eq .chezmoi.osRelease.id "arch" -}} sudo pacman -Syu --noconfirm 2>&1|pad @@ -122,16 +124,17 @@ new_line "Update caches and upgrade packages" new_line "Install base packages" {{ if eq .chezmoi.os "darwin" -}} - brew install -q $BASE_PACKAGES python difftastic 2>&1|pad + brew install -q $BASE_PACKAGES python 2>&1|pad {{ else if eq .chezmoi.osRelease.id "fedora" -}} - sudo dnf install $BASE_PACKAGES difftastic kitty-terminfo util-linux-user python3-pip -y 2>&1|pad + sudo dnf install $BASE_PACKAGES kitty-terminfo util-linux-user python3-pip -y 2>&1|pad {{ else if eq .chezmoi.osRelease.id "debian" "ubuntu" -}} sudo apt-get install $BASE_PACKAGES kitty-terminfo direnv python3-pip -y 2>&1|pad + sudo apt-get install software-properties-common -y 2>&1|pad {{ else if eq .chezmoi.osRelease.id "arch" -}} - sudo pacman -Sy --noconfirm $BASE_PACKAGES difftastic kitty-terminfo python3-pip 2>&1|pad + sudo pacman -Sy --noconfirm $BASE_PACKAGES kitty-terminfo python3-pip 2>&1|pad {{ end -}}