mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
Minor tweaks
- Format README.md and add links to theme authors - Fix indentation in gogh.sh - Modify comments to identify colors by their name rather than their use - shellcheck errors - quote variables in most places to prevent word globbing - use $(cmd) instead of legacy `cmd`
This commit is contained in:
@@ -1,27 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# ====================CONFIG THIS =============================== #
|
||||
COLOR_01="#44475a" # HOST
|
||||
COLOR_02="#ff5555" # SYNTAX_STRING
|
||||
COLOR_03="#50fa7b" # COMMAND
|
||||
COLOR_04="#ffb86c" # COMMAND_COLOR2
|
||||
COLOR_05="#8be9fd" # PATH
|
||||
COLOR_06="#bd93f9" # SYNTAX_VAR
|
||||
COLOR_07="#ff79c6" # PROMP
|
||||
COLOR_08="#94A3A5" #
|
||||
COLOR_01="#44475a" # Black
|
||||
COLOR_02="#ff5555" # Red
|
||||
COLOR_03="#50fa7b" # Green
|
||||
COLOR_04="#ffb86c" # Yellow
|
||||
COLOR_05="#8be9fd" # Blue
|
||||
COLOR_06="#bd93f9" # Cyan
|
||||
COLOR_07="#ff79c6" # Magenta
|
||||
COLOR_08="#94A3A5" # Light gray
|
||||
|
||||
COLOR_09="#000000" #
|
||||
COLOR_10="#ff5555" # COMMAND_ERROR
|
||||
COLOR_11="#50fa7b" # EXEC
|
||||
COLOR_12="#ffb86c" #
|
||||
COLOR_13="#8be9fd" # FOLDER
|
||||
COLOR_14="#bd93f9" #
|
||||
COLOR_15="#ff79c6" #
|
||||
COLOR_16="#ffffff" #
|
||||
COLOR_09="#000000" # Dark gray
|
||||
COLOR_10="#ff5555" # Light Red
|
||||
COLOR_11="#50fa7b" # Light Green
|
||||
COLOR_12="#ffb86c" # Light Yellow
|
||||
COLOR_13="#8be9fd" # Light Blue
|
||||
COLOR_14="#bd93f9" # Light Cyan
|
||||
COLOR_15="#ff79c6" # Light Magenta
|
||||
COLOR_16="#ffffff" # White
|
||||
|
||||
BACKGROUND_COLOR="#282a36" # Background Color
|
||||
FOREGROUND_COLOR="#94A3A5" # Text
|
||||
CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor
|
||||
FOREGROUND_COLOR="#94A3A5" # Foreground Color (text)
|
||||
CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
|
||||
PROFILE_NAME="_base"
|
||||
# =============================================
|
||||
|
||||
@@ -48,16 +48,15 @@ function curlsource() {
|
||||
rm -f "$f"
|
||||
}
|
||||
|
||||
SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
|
||||
|
||||
gogh_colors
|
||||
|
||||
if [ -e $PARENT_PATH"/apply-colors.sh" ]
|
||||
then
|
||||
gogh_colors
|
||||
source $PARENT_PATH"/apply-colors.sh"
|
||||
|
||||
source $PARENT_PATH"/apply-colors.sh"
|
||||
else
|
||||
gogh_colors
|
||||
if [ $(uname) = "Darwin" ]; then
|
||||
# OSX ships with curl and ancient bash
|
||||
# Note: here, sourcing directly from curl does not work
|
||||
|
||||
Reference in New Issue
Block a user