Skip to content

Commit

Permalink
Merge pull request #350 from shagohead/master
Browse files Browse the repository at this point in the history
Fix TERM checking for kitty under Darwin
  • Loading branch information
Mgldvd authored Jul 30, 2022
2 parents 6af0b36 + e777605 commit 941a207
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apply-colors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 941a207

Please sign in to comment.