mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Merge pull request #150 from jphager2/allow_terminal_to_be_set
Allow TERMINAL to be set by environment
This commit is contained in:
commit
cfd8b4924a
@ -102,16 +102,18 @@ set_theme() {
|
|||||||
# |
|
# |
|
||||||
# | Check for the terminal name (depening on os)
|
# | Check for the terminal name (depening on os)
|
||||||
# | ===========================================
|
# | ===========================================
|
||||||
OS=$(uname)
|
if [[ -z "$TERMINAL" ]]; then
|
||||||
if [ "$OS" = "Darwin" ]; then
|
OS=$(uname)
|
||||||
# |
|
if [ "$OS" = "Darwin" ]; then
|
||||||
# | Check for the terminal name and decide how to apply
|
# |
|
||||||
# | ===========================================
|
# | Check for the terminal name and decide how to apply
|
||||||
TERMINAL=$TERM_PROGRAM
|
# | ===========================================
|
||||||
elif [ "${OS#CYGWIN}" != "${OS}" ]; then
|
TERMINAL=$TERM_PROGRAM
|
||||||
TERMINAL="mintty"
|
elif [ "${OS#CYGWIN}" != "${OS}" ]; then
|
||||||
else
|
TERMINAL="mintty"
|
||||||
TERMINAL="$(ps -p $(ps -p $(ps -p $$ -o ppid=) -o ppid=) -o args=)"
|
else
|
||||||
|
TERMINAL="$(ps -p $(ps -p $(ps -p $$ -o ppid=) -o ppid=) -o args=)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# |
|
# |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user