mirror of https://github.com/Mayccoll/Gogh.git
Merge pull request #350 from shagohead/master
Fix TERM checking for kitty under Darwin
This commit is contained in:
commit
941a2076ee
|
@ -53,12 +53,12 @@ if [[ -z "${TERMINAL:-}" ]]; then
|
||||||
# | Check for the terminal name (depening on os)
|
# | Check for the terminal name (depening on os)
|
||||||
# | ===========================================
|
# | ===========================================
|
||||||
OS="$(uname)"
|
OS="$(uname)"
|
||||||
if [[ "$OS" = "Darwin" ]]; then
|
if [[ "$TERM" = "xterm-kitty" ]]; then
|
||||||
|
TERMINAL="kitty"
|
||||||
|
elif [[ "$OS" = "Darwin" ]]; then
|
||||||
TERMINAL=$TERM_PROGRAM
|
TERMINAL=$TERM_PROGRAM
|
||||||
elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then
|
elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then
|
||||||
TERMINAL="mintty"
|
TERMINAL="mintty"
|
||||||
elif [[ "$TERM" = "xterm-kitty" ]]; then
|
|
||||||
TERMINAL="kitty"
|
|
||||||
else
|
else
|
||||||
# |
|
# |
|
||||||
# | Depending on how the script was invoked, we need
|
# | Depending on how the script was invoked, we need
|
||||||
|
|
Loading…
Reference in New Issue