Skip to content

Instantly share code, notes, and snippets.

@lmintmate
Last active September 23, 2019 15:07
Show Gist options
  • Save lmintmate/176a3c1b322726fbad7da6b1c60fe014 to your computer and use it in GitHub Desktop.
Save lmintmate/176a3c1b322726fbad7da6b1c60fe014 to your computer and use it in GitHub Desktop.
[OLD VERSION - DO NOT USE] Gogh theme
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
COLOR_01="#000000" # Black
COLOR_02="#ff0000" # Red
COLOR_03="#7fff00" # Green
COLOR_04="#ffd700" # Yellow
COLOR_05="#235c94" # Blue
COLOR_06="#4f94cd" # Cyan
COLOR_07="#f5deb3" # Magenta
COLOR_08="#bfbfbf" # Light gray
COLOR_09="#4d4d4d" # Dark gray
COLOR_10="#ff6347" # Light Red
COLOR_11="#7fff00" # Light Green
COLOR_12="#ffff00" # Light Yellow
COLOR_13="#00cdcd" # Light Blue
COLOR_14="#00ffff" # Light Cyan
COLOR_15="#f5deb3" # Light Magenta
COLOR_16="#f5f5f5" # White
BACKGROUND_COLOR="#104e8b" # Background Color
FOREGROUND_COLOR="#f5f5f5" # Foreground Color (text)
CURSOR_COLOR="#ffb90f" # Cursor color
PROFILE_NAME="blue-mood"
# =============================================
# =============================================================== #
# | Apply Colors
# ===============================================================|#
function gogh_colors () {
echo ""
echo -e "\033[0;30m█████\\033[0m\033[0;31m█████\\033[0m\033[0;32m█████\\033[0m\033[0;33m█████\\033[0m\033[0;34m█████\\033[0m\033[0;35m█████\\033[0m\033[0;36m█████\\033[0m\033[0;37m█████\\033[0m"
echo -e "\033[0m\033[1;30m█████\\033[0m\033[1;31m█████\\033[0m\033[1;32m█████\\033[0m\033[1;33m█████\\033[0m\033[1;34m█████\\033[0m\033[1;35m█████\\033[0m\033[1;36m█████\\033[0m\033[1;37m█████\\033[0m"
echo ""
}
function curlsource() {
f=$(mktemp -t curlsource)
curl -o "$f" -s -L "$1"
source "$f"
rm -f "$f"
}
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
gogh_colors
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
# Note: here, sourcing directly from curl does not work
curlsource https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh
else
# Linux ships with wget
source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh)
fi
fi
@lmintmate
Copy link
Author

Install with:
wget -O xt http://git.io/vpF7M && chmod +x xt && ./xt && rm xt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment