1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

28 Commits
v216 ... v220

Author SHA1 Message Date
Mayccoll
6f877c9031 Add aura to gogh list 2021-10-25 14:57:16 -05:00
Mayccoll
27900c1a64 Merge pull request #309 from r2binx/master
Add Aura theme
2021-10-25 14:55:16 -05:00
Robin Härle
8f6f58602f Add Aura theme 2021-10-24 19:54:57 +02:00
Miguelq
2f3a0b57c5 add list of terminals 2021-09-12 18:55:06 -05:00
Mayccoll
7866f8c1d9 Merge pull request #308 from z-nexx/kitty
Added support for Kitty
2021-09-12 17:49:32 -05:00
z-nexx
e7e4780f54 Fixed comments in kitty config file header and optinal selection colors 2021-09-12 20:20:37 +02:00
z-nexx
851f840380 Added support for Kitty 2021-09-12 20:20:17 +02:00
github-actions[bot]
4faaf53b20 ------- Generate themes.json ------- 2021-08-30 18:30:08 +00:00
Mayccoll
186d50baba Merge pull request #306 from jack23247/master
Request to merge new theme IBM 3270 (High Contrast)
2021-08-30 13:29:35 -05:00
Jacopo Maltagliati
f636b66d5c Add file ibm3270-hicontrast.sh 2021-08-30 11:15:39 +02:00
Jacopo Maltagliati
f35d187bcb Created theme Ibm3270 Hicontrast (83) 2021-08-28 16:10:23 +02:00
Mayccoll
e915648aa9 Merge pull request #302 from pfuender/master
support for foot terminal (https://codeberg.org/dnkl/foot)
2021-08-06 10:09:44 -05:00
pfuender
b7739b8ee8 adding support for foot terminal (https://codeberg.org/dnkl/foot) 2021-08-05 22:05:42 +02:00
Miguelq
e40138dfea Merge branch 'master' of github.com:Mayccoll/Gogh 2021-07-31 14:40:32 -05:00
Miguelq
a7d47c4081 Fix typos for morada theme 2021-07-31 14:40:27 -05:00
github-actions[bot]
4610922f4f ------- Generate themes.json ------- 2021-07-31 19:37:12 +00:00
Miguelq
ebd325c5be update gogh to add morada and dissonance themes 2021-07-31 14:34:50 -05:00
Mayccoll
d4114c048d Merge pull request #301 from Sriram-bb63/master
Morada theme
2021-07-31 14:32:06 -05:00
Mayccoll
ddc34a6150 Merge pull request #300 from GuilhermeTerriaga/master
Add Dissonance theme
2021-07-31 14:31:55 -05:00
Sriram-bb63
4a0c9366a5 Move Morado.sh 2021-07-23 23:57:16 +05:30
Sriram
09281078e4 Merge pull request #1 from Sriram-bb63/Sriram-bb63-Morada
Create Morada.sh
2021-07-23 23:53:37 +05:30
Sriram
211ce5016b Create Morada.sh 2021-07-23 23:53:23 +05:30
Guilherme Terriaga
f46e625b8b add Dissonance 2021-07-18 23:49:04 -03:00
Miguelq
fa52b0bb47 Merge branch 'master' of github.com:Mayccoll/Gogh 2021-07-13 20:54:01 -05:00
Miguelq
c4c0222c24 Fix typos on tokyo-night 2021-07-13 20:53:56 -05:00
github-actions[bot]
be1b44892c ------- Generate themes.json ------- 2021-07-14 01:38:20 +00:00
Miguelq
e6ccec6042 Merge branch 'master' of github.com:Mayccoll/Gogh 2021-07-13 20:28:31 -05:00
Miguelq
c3426c8d7d move base theme outside themes 2021-07-13 20:28:25 -05:00
10 changed files with 428 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ Gogh
:small_blue_diamond: <a href="http://mayccoll.github.io/Gogh"> Visit the Website </a> :small_blue_diamond:
</div>
## Color Scheme for Gnome Terminal, Pantheon Terminal, Tilix, and XFCE4 Terminal
## Color scheme for your terminal
Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that use Gnome Terminal, Pantheon Terminal, Tilix, or XFCE4 Terminal; initially inspired by Elementary OS Luna. Also works on iTerm for macOS. You can check out the themes [here](https://mayccoll.github.io/Gogh/).
@@ -17,8 +17,19 @@ Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that u
----
<br/>
<br/>
## 💻 Terminals
- Gnome - [Web](https://help.gnome.org/users/gnome-terminal/stable/)
- Mintty - [Web](https://mintty.github.io/)
- Mate - [Web](https://github.com/mate-desktop/mate-terminal)
- Pantheon / Elementary - [Web](https://github.com/elementary/terminal)
- Tilix - [Web](https://gnunn1.github.io/tilix-web/)
- XFCE4 - [Web](https://docs.xfce.org/apps/terminal/start)
- iTerm - [Web](https://iterm2.com/)
- Cygwin - [Web](https://www.cygwin.com/)
- Guake - [Web](https://sw.kovidgoyal.net/kitty/)
- Foot - [Web](https://codeberg.org/dnkl/foot)
- Kitty - [Web](https://sw.kovidgoyal.net/kitty/)
## ⚙️ Pre-Install
@@ -148,6 +159,11 @@ There is no blue without yellow and without orange.
## Author
- Miguel D. Quintero - [Lanet.co](https://lanet.co)
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="UCTBRYLUVKQ32" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_CO/i/scr/pixel.gif" width="1" height="1" />
</form>
<br/>
<br/>

View File

@@ -57,6 +57,8 @@ if [[ -z "${TERMINAL:-}" ]]; then
TERMINAL=$TERM_PROGRAM
elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then
TERMINAL="mintty"
elif [[ "$TERM" = "xterm-kitty" ]]; then
TERMINAL="kitty"
else
# |
# | Depending on how the script was invoked, we need
@@ -110,6 +112,24 @@ case "${TERMINAL}" in
fi
;;
foot )
CFGFILE="${HOME}/.config/foot/foot.ini"
if [[ ! -f "${CFGFILE}" ]]; then
printf '\n%s\n' "Error: Couldn't find an existing configuration file."
exit 1
fi
;;
kitty )
if [[ -z "${KITTY_CONFIG_DIRECTORY:-}" ]]; then
KITTY_CONFIG_DIRECTORY="${HOME}/.config/kitty"
fi
CFGFILE="${KITTY_CONFIG_DIRECTORY}/kitty.conf"
if [[ ! -f "${CFGFILE}" ]]; then
printf '\n%s\n' "Error: Couldn't find an existing configuration file for Kitty."
exit 1
fi
;;
esac
@@ -170,6 +190,14 @@ updateMinttyConfig () {
sed -i -r -e "s/^${name}=.+/$(createMinttyEntry "${name}" "${color}")/g" "${config}"
}
updateFootConfig () {
local config="${1}"
local color="${2}"
local name="${3}"
sed -i -r -e "s/^${name}=.+/${name}=${color/\#/}/g" "${config}"
}
convertNameAndRGBtoITerm() {
local name="${1}"
local color="${2}"
@@ -428,11 +456,95 @@ apply_alacritty() {
}
apply_foot() {
# |
# | Applying values on foot
# | ===========================================
echo "Patching foot configuration file (${CFGFILE}) with new colors..."
updateFootConfig "$CFGFILE" "$COLOR_01" "regular0"
updateFootConfig "$CFGFILE" "$COLOR_02" "regular1"
updateFootConfig "$CFGFILE" "$COLOR_03" "regular2"
updateFootConfig "$CFGFILE" "$COLOR_04" "regular3"
updateFootConfig "$CFGFILE" "$COLOR_05" "regular4"
updateFootConfig "$CFGFILE" "$COLOR_06" "regular5"
updateFootConfig "$CFGFILE" "$COLOR_07" "regular6"
updateFootConfig "$CFGFILE" "$COLOR_08" "regular7"
updateFootConfig "$CFGFILE" "$COLOR_09" "bright0"
updateFootConfig "$CFGFILE" "$COLOR_10" "bright1"
updateFootConfig "$CFGFILE" "$COLOR_11" "bright2"
updateFootConfig "$CFGFILE" "$COLOR_12" "bright3"
updateFootConfig "$CFGFILE" "$COLOR_13" "bright4"
updateFootConfig "$CFGFILE" "$COLOR_14" "bright5"
updateFootConfig "$CFGFILE" "$COLOR_15" "bright6"
updateFootConfig "$CFGFILE" "$COLOR_16" "bright7"
updateFootConfig "$CFGFILE" "$BACKGROUND_COLOR" "background"
updateFootConfig "$CFGFILE" "$FOREGROUND_COLOR" "foreground"
echo "Done - please reopen your foot terminal to see the changes"
}
apply_kitty() {
# |
# | Applying values on Kitty
# | ===========================================
echo "Patching kitty configuration file ($CFGFILE) with include of color theme file..."
COLOR_FILE="colors.conf"
if ! grep -q "^include $COLOR_FILE$" "$CFGFILE" ; then
echo "" >> "$CFGFILE"
echo "# Added by Gogh" >> "$CFGFILE"
echo "include $COLOR_FILE" >> "$CFGFILE"
fi
CFGFILE="${KITTY_CONFIG_DIRECTORY}/$COLOR_FILE"
echo "Updating color theme file ($CFGFILE) with theme..."
rm -f "$CFGFILE"
echo "# Color theme: $PROFILE_NAME" >> "$CFGFILE"
echo "# Auto-generated by Gogh (https://mayccoll.github.io/Gogh/)" >> "$CFGFILE"
echo "" >> "$CFGFILE"
echo "color0 $COLOR_01" >> "$CFGFILE"
echo "color1 $COLOR_02" >> "$CFGFILE"
echo "color2 $COLOR_03" >> "$CFGFILE"
echo "color3 $COLOR_04" >> "$CFGFILE"
echo "color4 $COLOR_05" >> "$CFGFILE"
echo "color5 $COLOR_06" >> "$CFGFILE"
echo "color6 $COLOR_07" >> "$CFGFILE"
echo "color7 $COLOR_08" >> "$CFGFILE"
echo "color8 $COLOR_09" >> "$CFGFILE"
echo "color9 $COLOR_10" >> "$CFGFILE"
echo "color10 $COLOR_11" >> "$CFGFILE"
echo "color11 $COLOR_12" >> "$CFGFILE"
echo "color12 $COLOR_13" >> "$CFGFILE"
echo "color13 $COLOR_14" >> "$CFGFILE"
echo "color14 $COLOR_15" >> "$CFGFILE"
echo "color15 $COLOR_16" >> "$CFGFILE"
echo "background $BACKGROUND_COLOR" >> "$CFGFILE"
echo "foreground $FOREGROUND_COLOR" >> "$CFGFILE"
[ -n "$HIGHLIGHT_FG_COLOR" ] && echo "selection_foreground $HIGHLIGHT_FG_COLOR" >> "$CFGFILE"
[ -n "$HIGHLIGHT_BG_COLOR" ] && echo "selection_background $HIGHLIGHT_BG_COLOR" >> "$CFGFILE"
echo "cursor $CURSOR_COLOR" >> "$CFGFILE"
echo "Done - please reopen your kitty terminal to see the changes"
}
apply_darwin() {
# |
# | Applying values on iTerm2
# | ===========================================
BACKGROUND_COLOR=$(convertNameAndRGBtoITerm "Background Color" "$BACKGROUND_COLOR")
FOREGROUND_COLOR=$(convertNameAndRGBtoITerm "Foreground Color" "$FOREGROUND_COLOR")
COLOR_01=$(convertNameAndRGBtoITerm "Ansi 0 Color" "$COLOR_01")
@@ -653,7 +765,7 @@ apply_xfce4-terminal() {
else
echo "${L_COLORPALETTE}" >> "${CONFFILE}"
fi
if grep -q "^ColorCursor=" "${CONFFILE}"; then
sed -i -r -e "s/^ColorCursor=.*/${L_COLORCURSOR}/" "${CONFFILE}"
else
@@ -778,6 +890,14 @@ case "${TERMINAL}" in
apply_alacritty
;;
foot )
apply_foot
;;
kitty )
apply_kitty
;;
* )
printf '%s\n' \
"Unsupported terminal!" \
@@ -791,6 +911,8 @@ case "${TERMINAL}" in
" gnome-terminal" \
" tilix" \
" xfce4-terminal" \
" foot" \
" kitty" \
"" \
"If you believe you have recieved this message in error," \
"try manually setting \`TERMINAL', hint: ps -h -o comm -p \$PPID"

File diff suppressed because one or more lines are too long

12
gogh.sh
View File

@@ -24,6 +24,7 @@ declare -a THEMES=(
'argonaut.sh'
'arthur.sh'
'atom.sh'
'aura.sh'
'ayu-dark.sh'
'ayu-light.sh'
'ayu-mirage.sh'
@@ -54,6 +55,7 @@ declare -a THEMES=(
'dehydration.sh'
'desert.sh'
'dimmed-monokai.sh'
'dissonance.sh'
'dracula.sh'
'earthsong.sh'
'elemental.sh'
@@ -95,6 +97,7 @@ declare -a THEMES=(
'hurtado.sh'
'hybrid.sh'
'ibm3270.sh'
'ibm3270-hicontrast.sh'
'ic-green-ppl.sh'
'ic-orange-ppl.sh'
'idle-toes.sh'
@@ -132,6 +135,7 @@ declare -a THEMES=(
'monokai-dark.sh'
'monokai-pro.sh'
'monokai-soda.sh'
'morada.sh'
'n0tch2k.sh'
'neon-night.sh'
'neopolitan.sh'
@@ -205,9 +209,9 @@ declare -a THEMES=(
'terminix-dark.sh'
'thayer-bright.sh'
'tin.sh'
'tokyo-night-light'
'tokyo-night-storm'
'tokyo-night'
'tokyo-night-light.sh'
'tokyo-night-storm.sh'
'tokyo-night.sh'
'tomorrow-night-blue.sh'
'tomorrow-night-bright.sh'
'tomorrow-night-eighties.sh'
@@ -362,6 +366,8 @@ if [[ -z "${TERMINAL:-}" ]]; then
TERMINAL=$TERM_PROGRAM
elif [[ "${OS#CYGWIN}" != "${OS}" ]]; then
TERMINAL="mintty"
elif [[ "$TERM" = "xterm-kitty" ]]; then
TERMINAL="kitty"
else
# |
# | Depending on how the script was invoked, we need

55
themes/aura.sh Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
export COLOR_01="#110f18" # Black
export COLOR_02="#ff6767" # Red
export COLOR_03="#61ffca" # Green
export COLOR_04="#ffca85" # Yellow
export COLOR_05="#a277ff" # Blue
export COLOR_06="#a277ff" # Magenta
export COLOR_07="#61ffca" # Cyan
export COLOR_08="#edecee" # Light gray
export COLOR_09="#6d6d6d" # Dark gray
export COLOR_10="#ffca85" # Light Red
export COLOR_11="#a277ff" # Light Green
export COLOR_12="#ffca85" # Light Yellow
export COLOR_13="#a277ff" # Light Blue
export COLOR_14="#a277ff" # Light Magenta
export COLOR_15="#61ffca" # Light Cyan
export COLOR_16="#edecee" # White
export BACKGROUND_COLOR="#15141B" # Background Color
export FOREGROUND_COLOR="#edecee" # Foreground Color (text)
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
export PROFILE_NAME="Aura"
# =============================================================== #
# =============================================================== #
# | 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

55
themes/dissonance.sh Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
export COLOR_01="#000000" # HOST
export COLOR_02="#dc322f" # SYNTAX_STRING
export COLOR_03="#56db3a" # COMMAND
export COLOR_04="#ff8400" # COMMAND_COLOR2
export COLOR_05="#0084d4" # PATH
export COLOR_06="#b729d9" # SYNTAX_VAR
export COLOR_07="#ccccff" # PROMP
export COLOR_08="#ffffff" #
export COLOR_09="#d6dbe5" #
export COLOR_10="#dc322f" # COMMAND_ERROR
export COLOR_11="#56db3a" # EXEC
export COLOR_12="#ff8400" #
export COLOR_13="#0084d4" # FOLDER
export COLOR_14="#b729d9" #
export COLOR_15="#ccccff" #
export COLOR_16="#ffffff" #
export BACKGROUND_COLOR="#000000" # Background Color
export FOREGROUND_COLOR="#ffffff" # Text
export CURSOR_COLOR="#dc322f" # Cursor
export PROFILE_NAME="Dissonance"
# =============================================================== #
# =============================================================== #
# | 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

55
themes/gogh.sh Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
export COLOR_01="#292D3E" # Black
export COLOR_02="#F07178" # Red
export COLOR_03="#C3E88D" # Green
export COLOR_04="#FFCB6B" # Yellow
export COLOR_05="#82AAFF" # Blue
export COLOR_06="#C792EA" # Magenta
export COLOR_07="#60ADEC" # Cyan
export COLOR_08="#ABB2BF" # Light gray
export COLOR_09="#959DCB" # Dark gray
export COLOR_10="#F07178" # Light Red
export COLOR_11="#C3E88D" # Light Green
export COLOR_12="#FF5572" # Light Yellow
export COLOR_13="#82AAFF" # Light Blue
export COLOR_14="#FFCB6B" # Light Magenta
export COLOR_15="#676E95" # Light Cyan
export COLOR_16="#FFFEFE" # White
export BACKGROUND_COLOR="#292D3E" # Background Color
export FOREGROUND_COLOR="#BFC7D5" # Foreground Color (text)
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
export PROFILE_NAME="_bash"
# =============================================================== #
# =============================================================== #
# | 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

55
themes/ibm3270-hicontrast.sh Executable file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
export COLOR_01="#000000" # Black
export COLOR_02="#FF0000" # Red
export COLOR_03="#00FF00" # Green
export COLOR_04="#FFFF00" # Yellow
export COLOR_05="#00BFFF" # Blue
export COLOR_06="#FFC0CB" # Magenta
export COLOR_07="#40E0D0" # Cyan
export COLOR_08="#BEBEBE" # Light gray
export COLOR_09="#414141" # Dark gray
export COLOR_10="#FFA500" # Light Red
export COLOR_11="#98FB98" # Light Green
export COLOR_12="#FFFF00" # Light Yellow
export COLOR_13="#0000CD" # Light Blue
export COLOR_14="#A020F0" # Light Magenta
export COLOR_15="#AEEEEE" # Light Cyan
export COLOR_16="#FFFFFF" # White
export BACKGROUND_COLOR="#000000" # Background Color
export FOREGROUND_COLOR="#FDFDFD" # Foreground Color (text)
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
export PROFILE_NAME="IBM 3270 (High Contrast)"
# =============================================================== #
# =============================================================== #
# | 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

55
themes/morada.sh Normal file
View File

@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# ====================CONFIG THIS =============================== #
export COLOR_01="#040404" # HOST
export COLOR_02="#0f49c4" # SYNTAX_STRING
export COLOR_03="#48b117" # COMMAND
export COLOR_04="#e87324" # COMMAND_COLOR2
export COLOR_05="#bc0116" # PATH
export COLOR_06="#665b93" # SYNTAX_VAR
export COLOR_07="#70a699" # PROMP
export COLOR_08="#f5dcbe" #
export COLOR_09="#4f7cbf" #
export COLOR_10="#1c96c7" # COMMAND_ERROR
export COLOR_11="#3bff6f" # EXEC
export COLOR_12="#efc31c" #
export COLOR_13="#fb605b" # FOLDER
export COLOR_14="#975b5a" #
export COLOR_15="#1eff8e" #
export COLOR_16="#f6f5fb" #
export BACKGROUND_COLOR="#211f46" # Background Color
export FOREGROUND_COLOR="#ffffff" # Text
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor
export PROFILE_NAME="Morada"
# =============================================================== #
# =============================================================== #
# | 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