mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Allow TERMINAL to be set by environment
This commit is contained in:
parent
f1f51de1d6
commit
0f0a45b7fc
@ -102,6 +102,7 @@ set_theme() {
|
||||
# |
|
||||
# | Check for the terminal name (depening on os)
|
||||
# | ===========================================
|
||||
if [[ -z "$TERMINAL" ]]; then
|
||||
OS=$(uname)
|
||||
if [ "$OS" = "Darwin" ]; then
|
||||
# |
|
||||
@ -113,6 +114,7 @@ elif [ "${OS#CYGWIN}" != "${OS}" ]; then
|
||||
else
|
||||
TERMINAL="$(ps -p $(ps -p $(ps -p $$ -o ppid=) -o ppid=) -o args=)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# |
|
||||
# | Apply color scheme to terminal
|
||||
|
Loading…
Reference in New Issue
Block a user