mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
55 lines
1.6 KiB
Bash
Executable File
55 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# ====================CONFIG THIS =============================== #
|
|
COLOR_01="#012026" # HOST
|
|
COLOR_02="#b2302d" # SYNTAX_STRING
|
|
COLOR_03="#00a941" # COMMAND
|
|
COLOR_04="#5e8baa" # COMMAND_COLOR2
|
|
COLOR_05="#449a86" # PATH
|
|
COLOR_06="#00599d" # SYNTAX_VAR
|
|
COLOR_07="#5d7e19" # PROMP
|
|
COLOR_08="#405555" #
|
|
|
|
COLOR_09="#384451" #
|
|
COLOR_10="#ff4242" # COMMAND_ERROR
|
|
COLOR_11="#2aea5e" # EXEC
|
|
COLOR_12="#8ed4fd" #
|
|
COLOR_13="#61d5ba" # FOLDER
|
|
COLOR_14="#1298ff" #
|
|
COLOR_15="#98d028" #
|
|
COLOR_16="#58fbd6" #
|
|
|
|
BACKGROUND_COLOR="#001015" # Background Color
|
|
FOREGROUND_COLOR="#405555" # Text
|
|
CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor
|
|
PROFILE_NAME="Shaman"
|
|
# =============================================================== #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================== #
|
|
# | Apply Colors
|
|
# ===============================================================|#
|
|
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
|
|
|
|
# Allow developer to change url to forked url for easier testing
|
|
BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Mayccoll/Gogh/master"}
|
|
|
|
|
|
if [ -e "${PARENT_PATH}/apply-colors.sh" ]
|
|
then
|
|
source "${PARENT_PATH}/apply-colors.sh"
|
|
else
|
|
if [ "$(uname)" = "Darwin" ]; then
|
|
# OSX ships with curl and ancient bash
|
|
(eval "$(curl -so- "${BASE_URL}/apply-colors.sh")")
|
|
else
|
|
# Linux ships with wget
|
|
(eval "$(wget -qO- "${BASE_URL}/apply-colors.sh")")
|
|
fi
|
|
fi |