Fix TERM checking for kitty under Darwin

This commit is contained in:
shagohead 2022-07-30 12:08:20 +03:00
parent 6af0b3666c
commit e777605f33
1 changed files with 3 additions and 3 deletions

View File

@ -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