mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Add text highlight functionality (testing), colorcli and relaxed themes
This commit is contained in:
parent
f57f634101
commit
3d20359d6c
53
themes/colorcli.sh
Normal file
53
themes/colorcli.sh
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#!/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)
|
||||||
|
export COLOR_04="#FFFF00" # COMMAND_COLOR2 (yellow1)
|
||||||
|
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)
|
||||||
|
export COLOR_11="#FF8700" # EXEC (DarkOrange)
|
||||||
|
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
|
||||||
|
export FOREGROUND_COLOR="#5F5F5F" # Foreground Color (text - gray37)
|
||||||
|
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
|
||||||
|
export HIGHLIGHT_FG_COLOR="$FOREGROUND_COLOR" # Text color within highlight
|
||||||
|
export HIGHLIGHT_BG_COLOR="#BCBCBC" # Highlight color (gray74)
|
||||||
|
export PROFILE_NAME="colorcli"
|
||||||
|
# =============================================================== #
|
||||||
|
|
||||||
|
|
||||||
|
# =============================================================== #
|
||||||
|
# | 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
|
||||||
|
BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Mayccoll/Gogh/master"}
|
||||||
|
|
||||||
|
|
||||||
|
if [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then
|
||||||
|
bash "${PARENT_PATH}/apply-colors.sh"
|
||||||
|
else
|
||||||
|
if [[ "$(uname)" = "Darwin" ]]; then
|
||||||
|
# OSX ships with curl and ancient bash
|
||||||
|
bash -c "$(curl -so- "${BASE_URL}/apply-colors.sh")"
|
||||||
|
else
|
||||||
|
# Linux ships with wget
|
||||||
|
bash -c "$(wget -qO- "${BASE_URL}/apply-colors.sh")"
|
||||||
|
fi
|
||||||
|
fi
|
51
themes/relaxed.sh
Normal file
51
themes/relaxed.sh
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Relaxed theme from https://github.com/Relaxed-Theme
|
||||||
|
|
||||||
|
# ====================CONFIG THIS =============================== #
|
||||||
|
export COLOR_01="#151515" # HOST
|
||||||
|
export COLOR_02="#BC5653" # SYNTAX_STRING
|
||||||
|
export COLOR_03="#909D63" # COMMAND
|
||||||
|
export COLOR_04="#EBC17A" # COMMAND_COLOR2
|
||||||
|
export COLOR_05="#6A8799" # PATH
|
||||||
|
export COLOR_06="#B06698" # SYNTAX_VAR
|
||||||
|
export COLOR_07="#C9DFFF" # PROMPT
|
||||||
|
export COLOR_08="#D9D9D9" #
|
||||||
|
|
||||||
|
export COLOR_09="#636363" # Dark gray
|
||||||
|
export COLOR_10="#BC5653" # COMMAND_ERROR
|
||||||
|
export COLOR_11="#A0AC77" # EXEC
|
||||||
|
export COLOR_12="#EBC17A" # Light Yellow
|
||||||
|
export COLOR_13="#7EAAC7" # Light Blue
|
||||||
|
export COLOR_14="#B06698" # Light Magenta
|
||||||
|
export COLOR_15="#ACBBD0" # Light Cyan
|
||||||
|
export COLOR_16="#F7F7F7" # White
|
||||||
|
|
||||||
|
export BACKGROUND_COLOR="#353A44" # Background Color
|
||||||
|
export FOREGROUND_COLOR="#D9D9D9" # Foreground Color
|
||||||
|
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
|
||||||
|
export HIGHLIGHT_FG_COLOR="$FOREGROUND_COLOR" # Text color within highlight
|
||||||
|
export HIGHLIGHT_BG_COLOR="#ACBBD0" # Highlight color
|
||||||
|
export PROFILE_NAME="relaxed"
|
||||||
|
# =============================================================== #
|
||||||
|
|
||||||
|
|
||||||
|
# =============================================================== #
|
||||||
|
# | 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
|
||||||
|
BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Mayccoll/Gogh/master"}
|
||||||
|
|
||||||
|
|
||||||
|
if [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then
|
||||||
|
bash "${PARENT_PATH}/apply-colors.sh"
|
||||||
|
else
|
||||||
|
if command -v curl >/dev/null 2>&1; then
|
||||||
|
bash -c "$(curl -so- "${BASE_URL}/apply-colors.sh")"
|
||||||
|
elif command -v wget >/dev/null 2>&1; then
|
||||||
|
bash -c "$(wget -qO- "${BASE_URL}/apply-colors.sh")"
|
||||||
|
fi
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user