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

Major update with tilix support

This commit is contained in:
phenonymous 2018-11-06 00:00:17 +01:00
parent d1eafe6f1d
commit a453f6a34d
169 changed files with 55 additions and 234 deletions

View File

@ -3,9 +3,9 @@ Gogh
![elementary](https://raw.githubusercontent.com/Mayccoll/Gogh/master/images/gogh/Gogh-icons.png)
## Color Scheme for Gnome Terminal and Pantheon Terminal
## Color Scheme for Gnome Terminal, Pantheon Terminal and Tilix
Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that use gnome terminal or Pantheon Terminal, initially inspired by Elementary OS Luna. Also work on iTerm for macOS. You can check some themes [here...](https://mayccoll.github.io/Gogh/)
Color Schemes For Ubuntu, Linux Mint, Elementary OS and all distributions that use gnome terminal, Pantheon Terminal or Tilix, initially inspired by Elementary OS Luna. Also work on iTerm for macOS. You can check some themes [here...](https://mayccoll.github.io/Gogh/)
![elementary](https://raw.githubusercontent.com/Mayccoll/Gogh/master/images/demos/themes.gif)

View File

@ -25,7 +25,8 @@ hexRGBtoDecRGB () {
}
convertRGBtoMac () {
read -r R G B<<<"$(hexRGBtoDecRGB "$1")"
set -- $(hexRGBtoDecRGB "$1")
R=$1; shift; G=$1; shift; B=$1; shift
R=$(echo "${R} / 255" | bc -l)
G=$(echo "${G} / 255" | bc -l)
@ -37,8 +38,10 @@ convertRGBtoMac () {
createMinttyEntry () {
local name="$1"
local colour="$2"
set --
set -- $(hexRGBtoDecRGB "$colour")
R=$1; shift; G=$1; shift; B=$1; shift
read -r R G B<<<"$(hexRGBtoDecRGB "$colour")"
echo "$name=$R,$G,$B"
}
@ -52,8 +55,12 @@ updateMinttyConfig () {
}
convertNameAndRGBtoITerm() {
local name=$1
read -r R G B<<<"$(convertRGBtoMac "$2")"
local name="$1"
local colour="$2"
set --
set -- $(convertRGBtoMac "$colour")
R=$1; shift; G=$1; shift; B=$1; shift
echo "<key>$1</key><dict><key>Blue Component</key><real>${B}</real><key>Green Component</key><real>${G}</real><key>Red Component</key><real>${R}</real></dict>"
}
@ -99,6 +106,14 @@ set_theme() {
dset use-theme-background "false"
}
# |
# | Print theme colors
# | ===========================================
if command -v gogh_truecolor > /dev/null; then
gogh_truecolor
else
gogh_colors
fi
# |
# | Apply color scheme to terminal
@ -287,21 +302,23 @@ elif [ "$TERMINAL" = "tilix" ]; then
fi
if [[ ${TILIX_RES::1} =~ ^(y|Y)$ ]]; then
[[ -d "$HOME/.config/tilix/schemes" ]] || mkdir -p "$HOME/.config/tilix/schemes"
[[ -d "$HOME/.config/tilix/schemes" ]] || mkdir -p "${HOME}/.config/tilix/schemes"
TILIXCOLORS='{\n\t"background-color":"'${BACKGROUND_COLOR}'",\n\t"badge-color": "#FFFFFF",\n\t"bold-color": "#FFFFFF",\n\t"comment": "Generated by Gogh",\n\t"cursor-background-color": "#000000",\n\t"cursor-foreground-color": "'${CURSOR_COLOR}'",\n\t"foreground-color": "#FFFFFF",\n\t"highlight-background-color": "#000000",\n\t"highlight-foreground-color": "#FFFFFF",\n\t"name": "'${PROFILE_NAME}'",\n\t"palette": [\n\t\t"'${COLOR_01}'",\n\t\t"'${COLOR_02}'",\n\t\t"'${COLOR_03}'",\n\t\t"'${COLOR_04}'",\n\t\t"'${COLOR_05}'",\n\t\t"'${COLOR_06}'",\n\t\t"'${COLOR_07}'",\n\t\t"'${COLOR_08}'",\n\t\t"'${COLOR_09}'",\n\t\t"'${COLOR_10}'",\n\t\t"'${COLOR_11}'",\n\t\t"'${COLOR_12}'",\n\t\t"'${COLOR_13}'",\n\t\t"'${COLOR_14}'",\n\t\t"'${COLOR_15}'",\n\t\t"'${COLOR_16}'"\n\t],\n\t"use-badge-color": false,\n\t"use-bold-color": false,\n\t"use-cursor-color": false,\n\t"use-highlight-color": false,\n\t"use-theme-colors": false\n}'
echo -e "$TILIXCOLORS" > "$scratchdir/${PROFILE_NAME}.json"
echo -e "$TILIXCOLORS" > "${scratchdir}/${PROFILE_NAME}.json"
# Note: Tilix does not store color scheme name in dconf
# so we have to update color palette for the current profile in order to switch to the new theme
# but only set the palette on the last loop to avoid a flashing terminal
if ((LOOP == OPTLENGTH)); then
cp -f "$scratchdir/*" "$HOME/.config/tilix/schemes/"
rm -rf "$scratchdir"
cp -f "$scratchdir"/* "$HOME/.config/tilix/schemes/"
rm -rf "${scratchdir}"
PROFILE_KEY="$BASE_KEY_NEW/$DEFAULT_SLUG"
PROFILE_NAME=$($DCONF read $PROFILE_KEY/visible-name | tr -d "'")
read -r -p "All done - apply new theme? [y/N] " -n 1 TILIX_RES
if [[ ${TILIX_RES::1} =~ ^(y|Y)$ ]]; then
PROFILE_KEY="$BASE_KEY_NEW/$DEFAULT_SLUG"
PROFILE_NAME=$($DCONF read $PROFILE_KEY/visible-name | tr -d "'")
set_theme
dset palette "['${COLOR_01}', '${COLOR_02}', '${COLOR_03}', '${COLOR_04}', '${COLOR_05}', '${COLOR_06}', '${COLOR_07}', '${COLOR_08}', '${COLOR_09}', '${COLOR_10}', '${COLOR_11}', '${COLOR_12}', '${COLOR_13}', '${COLOR_14}', '${COLOR_15}', '${COLOR_16}']"
fi
@ -475,5 +492,4 @@ else
unset PROFILE_SLUG
unset DCONF
unset UUIDGEN
fi

30
gogh.sh
View File

@ -54,6 +54,8 @@ declare -a THEMES=(
'frontend-fun-forrest.sh'
'frontend-galaxy.sh'
'github.sh'
'google-dark.sh'
'google-light.sh'
'gooey.sh'
'grape.sh'
'grass.sh'
@ -169,8 +171,6 @@ declare -a THEMES=(
'wombat.sh'
'wryan.sh'
'zenburn.sh'
'google-light.sh'
'google-dark.sh'
)
@ -178,13 +178,14 @@ cleanup() {
echo
echo "Caught signal..$? Cleaning up"
rm -rf "$scratchdir"
unset TERMINAL TRUECOLOR LOOP OPTLENGTH
echo "Done..."
exit 1
exit 0
}
scratchdir=$(mktemp -d -t tmp.XXXXXXXX)
export scratchdir
trap cleanup SIGHUP SIGINT SIGQUIT SIGABRT
trap 'cleanup; trap - EXIT' EXIT HUP INT QUIT PIPE TERM
capitalize() {
@ -313,11 +314,30 @@ if [[ "$TERMINAL" = "tilix" ]]; then
echo
fi
# |
# | If terminal supports truecolor then we can show theme colors without applying the theme
# | ===========================================
if [[ "$COLORTERM" == "truecolor" ]] || [[ "$COLORTERM" == "24bit" ]]; then
# This function gets called in apply-colors.sh instead of gogh_colors
# Calls to gogh_colors has also been move to apply-colors.sh to avoid printing twice
function gogh_truecolor () {
echo
for c in {01..16}; do
local color="COLOR_$c"
set -- $(hexRGBtoDecRGB "${!color}")
echo -ne "\033[38;2;${1};${2};${3}m█████"
[[ "$c" == "08" ]] && echo # new line
done
echo
}
export -f gogh_truecolor
fi
# |
# | ::::::: Export one-off variables
# |
[[ -v TILIX_RES ]] && export TILIX_RES
export TERMINAL LOOP OPTLENGTH=${#OPTION[@]}
export TERMINAL LOOP OPTLENGTH=${#OPTION[@]}
# |
# | ::::::: Apply Theme

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
gogh_colors
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
gogh_colors
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -54,11 +54,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
gogh_colors
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
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

View File

@ -51,7 +51,6 @@ function curlsource() {
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT_PATH="$(dirname "$SCRIPT_PATH")"
gogh_colors
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then

View File

@ -53,11 +53,9 @@ PARENT_PATH="$(dirname "$SCRIPT_PATH")"
if [ -e $PARENT_PATH"/apply-colors.sh" ]
then
gogh_colors
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

Some files were not shown because too many files have changed in this diff Show More