From e777605f3308415e41db04b3d63c28acdfdc3fd7 Mon Sep 17 00:00:00 2001 From: shagohead Date: Sat, 30 Jul 2022 12:08:20 +0300 Subject: [PATCH] Fix TERM checking for kitty under Darwin --- apply-colors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apply-colors.sh b/apply-colors.sh index 943d793..0b24414 100755 --- a/apply-colors.sh +++ b/apply-colors.sh @@ -53,12 +53,12 @@ if [[ -z "${TERMINAL:-}" ]]; then # | Check for the terminal name (depening on os) # | =========================================== OS="$(uname)" - if [[ "$OS" = "Darwin" ]]; then + if [[ "$TERM" = "xterm-kitty" ]]; then + TERMINAL="kitty" + elif [[ "$OS" = "Darwin" ]]; then TERMINAL=$TERM_PROGRAM elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then TERMINAL="mintty" - elif [[ "$TERM" = "xterm-kitty" ]]; then - TERMINAL="kitty" else # | # | Depending on how the script was invoked, we need