2019-08-21 14:23:18 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# colorcli theme from https://github.com/jonasjacek/colorcli
|
|
|
|
|
|
|
|
# ====================CONFIG THIS =============================== #
|
|
|
|
export COLOR_01="#000000" # HOST (black - system)
|
|
|
|
export COLOR_02="#D70000" # SYNTAX_STRING (red3)
|
|
|
|
export COLOR_03="#5FAF00" # COMMAND (Chartreuse3)
|
2019-08-21 15:12:12 +03:00
|
|
|
export COLOR_04="#5FAF00" # COMMAND_COLOR2 (Chartreuse3)
|
2019-08-21 14:23:18 +03:00
|
|
|
export COLOR_05="#005F87" # PATH (deepskyblue4)
|
|
|
|
export COLOR_06="#D70000" # SYNTAX_VAR (red3)
|
|
|
|
export COLOR_07="#5F5F5F" # PROMPT (gray37)
|
|
|
|
export COLOR_08="#E4E4E4" # (gray89)
|
|
|
|
|
|
|
|
export COLOR_09="#5F5F5F" # Dark gray (gray37)
|
|
|
|
export COLOR_10="#D70000" # COMMAND_ERROR (red3)
|
2019-08-21 15:12:12 +03:00
|
|
|
export COLOR_11="#5F5F5F" # EXEC (gray37)
|
2019-08-21 14:23:18 +03:00
|
|
|
export COLOR_12="#FFFF00" # Light Yellow (yellow1)
|
|
|
|
export COLOR_13="#0087AF" # Light Blue (deepskyblue3)
|
|
|
|
export COLOR_14="#0087AF" # Light Magenta (deepskyblue3)
|
|
|
|
export COLOR_15="#0087AF" # Light Cyan (deepskyblue3)
|
|
|
|
export COLOR_16="#FFFFFF" # White (white - system)
|
|
|
|
|
|
|
|
export BACKGROUND_COLOR="#FFFFFF" # Background Color
|
2019-08-21 15:12:12 +03:00
|
|
|
export FOREGROUND_COLOR="#005F87" # Foreground Color (text - deepskyblue4)
|
2019-08-21 14:23:18 +03:00
|
|
|
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
|
2019-08-21 15:12:12 +03:00
|
|
|
export HIGHLIGHT_FG_COLOR="#0087AF" # Text color within highlight (deepskyblue3)
|
2019-08-21 14:23:18 +03:00
|
|
|
export HIGHLIGHT_BG_COLOR="#BCBCBC" # Highlight color (gray74)
|
2019-08-21 15:12:12 +03:00
|
|
|
export USE_SYS_TRANSPARENCY="false"
|
|
|
|
export PROFILE_NAME="Colorcli"
|
2019-08-21 14:23:18 +03:00
|
|
|
# =============================================================== #
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================== #
|
|
|
|
# | Apply Colors
|
|
|
|
# ===============================================================|#
|
|
|
|
SCRIPT_PATH="${SCRIPT_PATH:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
|
|
|
|
PARENT_PATH="$(dirname "${SCRIPT_PATH}")"
|
|
|
|
|
|
|
|
# Allow developer to change url to forked url for easier testing
|
|
|
|
# IMPORTANT: Make sure you export this variable if your main shell is not bash
|
2022-04-19 02:59:46 +03:00
|
|
|
BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Gogh-Co/Gogh/master"}
|
2019-08-21 14:23:18 +03:00
|
|
|
|
|
|
|
|
|
|
|
if [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then
|
|
|
|
bash "${PARENT_PATH}/apply-colors.sh"
|
|
|
|
else
|
2019-08-21 15:12:12 +03:00
|
|
|
if command -v curl >/dev/null 2>&1; then
|
2019-08-21 14:23:18 +03:00
|
|
|
bash -c "$(curl -so- "${BASE_URL}/apply-colors.sh")"
|
2019-08-21 15:12:12 +03:00
|
|
|
elif command -v wget >/dev/null 2>&1; then
|
2019-08-21 14:23:18 +03:00
|
|
|
bash -c "$(wget -qO- "${BASE_URL}/apply-colors.sh")"
|
|
|
|
fi
|
|
|
|
fi
|
2019-08-21 15:12:12 +03:00
|
|
|
|