diff --git a/themes/3024-day.sh b/themes/3024-day.sh index 36c1f9f..8c1b43a 100755 --- a/themes/3024-day.sh +++ b/themes/3024-day.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/3024-night.sh b/themes/3024-night.sh index f49494b..a94bdf9 100755 --- a/themes/3024-night.sh +++ b/themes/3024-night.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/_base.sh b/themes/_base.sh index af51c1e..8da31ba 100755 --- a/themes/_base.sh +++ b/themes/_base.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/aci.sh b/themes/aci.sh index 1ef90ef..a69a83a 100755 --- a/themes/aci.sh +++ b/themes/aci.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/aco.sh b/themes/aco.sh index 315531b..eab5c66 100755 --- a/themes/aco.sh +++ b/themes/aco.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/adventuretime.sh b/themes/adventuretime.sh index b972b91..95e9c07 100755 --- a/themes/adventuretime.sh +++ b/themes/adventuretime.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/afterglow.sh b/themes/afterglow.sh index 45ef68d..b64b163 100755 --- a/themes/afterglow.sh +++ b/themes/afterglow.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/alien-blood.sh b/themes/alien-blood.sh index 282139d..0b34c25 100755 --- a/themes/alien-blood.sh +++ b/themes/alien-blood.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/argonaut.sh b/themes/argonaut.sh index 99ffec6..ab80ba0 100755 --- a/themes/argonaut.sh +++ b/themes/argonaut.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/arthur.sh b/themes/arthur.sh index 7c1f817..c312089 100755 --- a/themes/arthur.sh +++ b/themes/arthur.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/atom.sh b/themes/atom.sh index bdd5bf7..12c36f8 100755 --- a/themes/atom.sh +++ b/themes/atom.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/azu.sh b/themes/azu.sh index 304d492..e500e8b 100755 --- a/themes/azu.sh +++ b/themes/azu.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/belafonte-day.sh b/themes/belafonte-day.sh index bd5f280..9d19507 100755 --- a/themes/belafonte-day.sh +++ b/themes/belafonte-day.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/belafonte-night.sh b/themes/belafonte-night.sh index 969a75d..c9d9565 100755 --- a/themes/belafonte-night.sh +++ b/themes/belafonte-night.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/bim.sh b/themes/bim.sh index 2e6499e..cc4f043 100755 --- a/themes/bim.sh +++ b/themes/bim.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/birds-of-paradise.sh b/themes/birds-of-paradise.sh index c234358..5714fbd 100755 --- a/themes/birds-of-paradise.sh +++ b/themes/birds-of-paradise.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/blazer.sh b/themes/blazer.sh index 127150b..57d94c5 100755 --- a/themes/blazer.sh +++ b/themes/blazer.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/borland.sh b/themes/borland.sh index 3f94278..aa67540 100755 --- a/themes/borland.sh +++ b/themes/borland.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/broadcast.sh b/themes/broadcast.sh index 7513dc6..e471ca2 100755 --- a/themes/broadcast.sh +++ b/themes/broadcast.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/brogrammer.sh b/themes/brogrammer.sh index 1e984c9..ae439cc 100755 --- a/themes/brogrammer.sh +++ b/themes/brogrammer.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/c64.sh b/themes/c64.sh index ee89ce3..afcaf2d 100755 --- a/themes/c64.sh +++ b/themes/c64.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/cai.sh b/themes/cai.sh index 143702e..6b01d5e 100755 --- a/themes/cai.sh +++ b/themes/cai.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/chalk.sh b/themes/chalk.sh index 1ca1d1d..21342de 100755 --- a/themes/chalk.sh +++ b/themes/chalk.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/chalkboard.sh b/themes/chalkboard.sh index 289c4cd..56c56c8 100755 --- a/themes/chalkboard.sh +++ b/themes/chalkboard.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ciapre.sh b/themes/ciapre.sh index ff630d9..d200509 100755 --- a/themes/ciapre.sh +++ b/themes/ciapre.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/clrs.sh b/themes/clrs.sh index 065fec8..4fd067a 100755 --- a/themes/clrs.sh +++ b/themes/clrs.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/cobalt-neon.sh b/themes/cobalt-neon.sh index d17374f..fe38b45 100755 --- a/themes/cobalt-neon.sh +++ b/themes/cobalt-neon.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/cobalt2.sh b/themes/cobalt2.sh index 268f528..3e60240 100755 --- a/themes/cobalt2.sh +++ b/themes/cobalt2.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/crayon-pony-fish.sh b/themes/crayon-pony-fish.sh index b3d219a..599f4cb 100755 --- a/themes/crayon-pony-fish.sh +++ b/themes/crayon-pony-fish.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/dark-pastel.sh b/themes/dark-pastel.sh index f926c11..228aa79 100755 --- a/themes/dark-pastel.sh +++ b/themes/dark-pastel.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/darkside.sh b/themes/darkside.sh index 758fcd5..164ee42 100755 --- a/themes/darkside.sh +++ b/themes/darkside.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/desert.sh b/themes/desert.sh index 172bee2..c3701f2 100755 --- a/themes/desert.sh +++ b/themes/desert.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/dimmed-monokai.sh b/themes/dimmed-monokai.sh index 53780a8..f5f9761 100755 --- a/themes/dimmed-monokai.sh +++ b/themes/dimmed-monokai.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/dracula.sh b/themes/dracula.sh index 117f88b..79d262c 100755 --- a/themes/dracula.sh +++ b/themes/dracula.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/earthsong.sh b/themes/earthsong.sh index 1f19b3c..ed6d6e1 100755 --- a/themes/earthsong.sh +++ b/themes/earthsong.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/elemental.sh b/themes/elemental.sh index c7e75bb..ac3a932 100755 --- a/themes/elemental.sh +++ b/themes/elemental.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/elementary.sh b/themes/elementary.sh index 6db206d..8e65cfa 100755 --- a/themes/elementary.sh +++ b/themes/elementary.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/elic.sh b/themes/elic.sh index 2ff6ad9..36c34a4 100755 --- a/themes/elic.sh +++ b/themes/elic.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/elio.sh b/themes/elio.sh index f07900e..c1100f2 100755 --- a/themes/elio.sh +++ b/themes/elio.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/espresso-libre.sh b/themes/espresso-libre.sh index d9d825a..154faf7 100755 --- a/themes/espresso-libre.sh +++ b/themes/espresso-libre.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/espresso.sh b/themes/espresso.sh index 17a76f6..1bab940 100755 --- a/themes/espresso.sh +++ b/themes/espresso.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/fishtank.sh b/themes/fishtank.sh index 7dfe75b..6205e4a 100755 --- a/themes/fishtank.sh +++ b/themes/fishtank.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/flat.sh b/themes/flat.sh index b2b04b7..c77209c 100755 --- a/themes/flat.sh +++ b/themes/flat.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/flatland.sh b/themes/flatland.sh index a86d38c..26ac8b7 100755 --- a/themes/flatland.sh +++ b/themes/flatland.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/foxnightly.sh b/themes/foxnightly.sh index d19ca96..1270223 100755 --- a/themes/foxnightly.sh +++ b/themes/foxnightly.sh @@ -42,6 +42,13 @@ function gogh_colors () { 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")" @@ -52,6 +59,13 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/freya.sh b/themes/freya.sh index ed182bc..34d211b 100755 --- a/themes/freya.sh +++ b/themes/freya.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/frontend-delight.sh b/themes/frontend-delight.sh index b962440..6b9a0fc 100755 --- a/themes/frontend-delight.sh +++ b/themes/frontend-delight.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/frontend-fun-forrest.sh b/themes/frontend-fun-forrest.sh index 53879a5..8327136 100755 --- a/themes/frontend-fun-forrest.sh +++ b/themes/frontend-fun-forrest.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/frontend-galaxy.sh b/themes/frontend-galaxy.sh index 1785d89..b6a9caf 100755 --- a/themes/frontend-galaxy.sh +++ b/themes/frontend-galaxy.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/github.sh b/themes/github.sh index 05563dd..a7ef740 100755 --- a/themes/github.sh +++ b/themes/github.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/grape.sh b/themes/grape.sh index 97bf781..47dc675 100755 --- a/themes/grape.sh +++ b/themes/grape.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/grass.sh b/themes/grass.sh index f0db26c..9a9b5e6 100755 --- a/themes/grass.sh +++ b/themes/grass.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/gruvbox-dark.sh b/themes/gruvbox-dark.sh index c1c873d..e10fce2 100755 --- a/themes/gruvbox-dark.sh +++ b/themes/gruvbox-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/gruvbox.sh b/themes/gruvbox.sh index 7f4e418..efe8e00 100755 --- a/themes/gruvbox.sh +++ b/themes/gruvbox.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/hardcore.sh b/themes/hardcore.sh index 8e32261..94830fa 100755 --- a/themes/hardcore.sh +++ b/themes/hardcore.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/harper.sh b/themes/harper.sh index 19e5e87..8635f33 100755 --- a/themes/harper.sh +++ b/themes/harper.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/hemisu-dark.sh b/themes/hemisu-dark.sh index 2af48dd..4ca1db8 100755 --- a/themes/hemisu-dark.sh +++ b/themes/hemisu-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/hemisu-light.sh b/themes/hemisu-light.sh index f80bf61..70d0b26 100755 --- a/themes/hemisu-light.sh +++ b/themes/hemisu-light.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/highway.sh b/themes/highway.sh index 6eb7cdd..551b89d 100755 --- a/themes/highway.sh +++ b/themes/highway.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/hipster-green.sh b/themes/hipster-green.sh index 836e3fc..a86b16f 100755 --- a/themes/hipster-green.sh +++ b/themes/hipster-green.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/homebrew.sh b/themes/homebrew.sh index 4cbaf1d..d32b770 100755 --- a/themes/homebrew.sh +++ b/themes/homebrew.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/hurtado.sh b/themes/hurtado.sh index ab7fc87..c905c6e 100755 --- a/themes/hurtado.sh +++ b/themes/hurtado.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/hybrid.sh b/themes/hybrid.sh index 800e082..9c203cb 100755 --- a/themes/hybrid.sh +++ b/themes/hybrid.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ic-green-ppl.sh b/themes/ic-green-ppl.sh index 5abc629..c0e212b 100755 --- a/themes/ic-green-ppl.sh +++ b/themes/ic-green-ppl.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ic-orange-ppl.sh b/themes/ic-orange-ppl.sh index 6e80f5e..89db288 100755 --- a/themes/ic-orange-ppl.sh +++ b/themes/ic-orange-ppl.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/idle-toes.sh b/themes/idle-toes.sh index d235ea2..eac8d9d 100755 --- a/themes/idle-toes.sh +++ b/themes/idle-toes.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ir-black.sh b/themes/ir-black.sh index 9d0aa16..3464968 100755 --- a/themes/ir-black.sh +++ b/themes/ir-black.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/jackie-brown.sh b/themes/jackie-brown.sh index 6a1a8d9..a766f1f 100755 --- a/themes/jackie-brown.sh +++ b/themes/jackie-brown.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/japanesque.sh b/themes/japanesque.sh index 0e63d6c..b6a5ded 100755 --- a/themes/japanesque.sh +++ b/themes/japanesque.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/jellybeans.sh b/themes/jellybeans.sh index 189088a..5cbe68b 100755 --- a/themes/jellybeans.sh +++ b/themes/jellybeans.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/jup.sh b/themes/jup.sh index 3855e13..29976d6 100755 --- a/themes/jup.sh +++ b/themes/jup.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/kibble.sh b/themes/kibble.sh index 5709c6b..a395ebd 100755 --- a/themes/kibble.sh +++ b/themes/kibble.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/later-this-evening.sh b/themes/later-this-evening.sh index a401412..00f30f6 100755 --- a/themes/later-this-evening.sh +++ b/themes/later-this-evening.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/lavandula.sh b/themes/lavandula.sh index e12a3d1..2fab288 100755 --- a/themes/lavandula.sh +++ b/themes/lavandula.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/liquid-carbon-transparent.sh b/themes/liquid-carbon-transparent.sh index 8b9300f..13ef917 100755 --- a/themes/liquid-carbon-transparent.sh +++ b/themes/liquid-carbon-transparent.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/liquid-carbon.sh b/themes/liquid-carbon.sh index 8f9b210..ba14901 100755 --- a/themes/liquid-carbon.sh +++ b/themes/liquid-carbon.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/man-page.sh b/themes/man-page.sh index 434e0cd..eb1465a 100755 --- a/themes/man-page.sh +++ b/themes/man-page.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/mar.sh b/themes/mar.sh index b330d51..cc0c86f 100755 --- a/themes/mar.sh +++ b/themes/mar.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/material.sh b/themes/material.sh index 940299b..1b5cf05 100755 --- a/themes/material.sh +++ b/themes/material.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/mathias.sh b/themes/mathias.sh index f096353..be260b5 100755 --- a/themes/mathias.sh +++ b/themes/mathias.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/medallion.sh b/themes/medallion.sh index 5eebc61..250c587 100755 --- a/themes/medallion.sh +++ b/themes/medallion.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/misterioso.sh b/themes/misterioso.sh index e4ce019..0b87ac1 100755 --- a/themes/misterioso.sh +++ b/themes/misterioso.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/miu.sh b/themes/miu.sh index dbbe1e6..cb11579 100755 --- a/themes/miu.sh +++ b/themes/miu.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/molokai.sh b/themes/molokai.sh index 40a3e08..aefb40d 100755 --- a/themes/molokai.sh +++ b/themes/molokai.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/monalisa.sh b/themes/monalisa.sh index 9d62cfa..71e3c48 100755 --- a/themes/monalisa.sh +++ b/themes/monalisa.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/monokai-dark.sh b/themes/monokai-dark.sh index d5b50cb..b594836 100755 --- a/themes/monokai-dark.sh +++ b/themes/monokai-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/monokai-soda.sh b/themes/monokai-soda.sh index 78f0623..c26efe3 100755 --- a/themes/monokai-soda.sh +++ b/themes/monokai-soda.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/n0tch2k.sh b/themes/n0tch2k.sh index 501cf9e..60c3218 100755 --- a/themes/n0tch2k.sh +++ b/themes/n0tch2k.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/neopolitan.sh b/themes/neopolitan.sh index 2cacb2c..45a151c 100755 --- a/themes/neopolitan.sh +++ b/themes/neopolitan.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/nep.sh b/themes/nep.sh index 36dc855..c78426a 100755 --- a/themes/nep.sh +++ b/themes/nep.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/neutron.sh b/themes/neutron.sh index 9eacec1..1906c41 100755 --- a/themes/neutron.sh +++ b/themes/neutron.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/nightlion-v1.sh b/themes/nightlion-v1.sh index 2000875..fb189f7 100755 --- a/themes/nightlion-v1.sh +++ b/themes/nightlion-v1.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/nightlion-v2.sh b/themes/nightlion-v2.sh index 0a40266..f5ac3c2 100755 --- a/themes/nightlion-v2.sh +++ b/themes/nightlion-v2.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/nord-light.sh b/themes/nord-light.sh index 578eb55..71b9556 100755 --- a/themes/nord-light.sh +++ b/themes/nord-light.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/nord.sh b/themes/nord.sh index e4318cc..d1e3a45 100755 --- a/themes/nord.sh +++ b/themes/nord.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/novel.sh b/themes/novel.sh index eb554da..55b685b 100755 --- a/themes/novel.sh +++ b/themes/novel.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/obsidian.sh b/themes/obsidian.sh index 0462b74..2206653 100755 --- a/themes/obsidian.sh +++ b/themes/obsidian.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ocean-dark.sh b/themes/ocean-dark.sh index 7f9b430..1ccc0aa 100755 --- a/themes/ocean-dark.sh +++ b/themes/ocean-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ocean.sh b/themes/ocean.sh index 94ea2d3..1edfb89 100755 --- a/themes/ocean.sh +++ b/themes/ocean.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/oceanic-next.sh b/themes/oceanic-next.sh index b8bf6d4..ff8edfd 100755 --- a/themes/oceanic-next.sh +++ b/themes/oceanic-next.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ollie.sh b/themes/ollie.sh index ba9cd8e..35479a5 100755 --- a/themes/ollie.sh +++ b/themes/ollie.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/one-dark.sh b/themes/one-dark.sh index 15df56a..2ee8f33 100755 --- a/themes/one-dark.sh +++ b/themes/one-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/one-half-black.sh b/themes/one-half-black.sh index 8810275..9a0036f 100755 --- a/themes/one-half-black.sh +++ b/themes/one-half-black.sh @@ -43,6 +43,13 @@ function gogh_colors () { 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")" @@ -53,5 +60,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/one-light.sh b/themes/one-light.sh index 3ab1f91..6ae587b 100755 --- a/themes/one-light.sh +++ b/themes/one-light.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/pali.sh b/themes/pali.sh index 225c936..c076726 100755 --- a/themes/pali.sh +++ b/themes/pali.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/paraiso-dark.sh b/themes/paraiso-dark.sh index 130c717..b12a98d 100755 --- a/themes/paraiso-dark.sh +++ b/themes/paraiso-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/paul-millr.sh b/themes/paul-millr.sh index 2c9782a..258865f 100755 --- a/themes/paul-millr.sh +++ b/themes/paul-millr.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/pencil-dark.sh b/themes/pencil-dark.sh index 96c4cd0..db579e7 100755 --- a/themes/pencil-dark.sh +++ b/themes/pencil-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/pencil-light.sh b/themes/pencil-light.sh index 24a22b1..58e503b 100755 --- a/themes/pencil-light.sh +++ b/themes/pencil-light.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/peppermint.sh b/themes/peppermint.sh index a18e13d..77e2b99 100755 --- a/themes/peppermint.sh +++ b/themes/peppermint.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/pnevma.sh b/themes/pnevma.sh index c9b1fc8..800791a 100755 --- a/themes/pnevma.sh +++ b/themes/pnevma.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/pro.sh b/themes/pro.sh index 9e58d05..fc3a69a 100755 --- a/themes/pro.sh +++ b/themes/pro.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/red-alert.sh b/themes/red-alert.sh index 4e9feb4..002be66 100755 --- a/themes/red-alert.sh +++ b/themes/red-alert.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/red-sands.sh b/themes/red-sands.sh index d265b5f..2ef99ce 100755 --- a/themes/red-sands.sh +++ b/themes/red-sands.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/rippedcasts.sh b/themes/rippedcasts.sh index a057958..4632bf0 100755 --- a/themes/rippedcasts.sh +++ b/themes/rippedcasts.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/royal.sh b/themes/royal.sh index c9f4e9f..1e3307d 100755 --- a/themes/royal.sh +++ b/themes/royal.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/sat.sh b/themes/sat.sh index 1ca11ce..5da4a35 100755 --- a/themes/sat.sh +++ b/themes/sat.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/sea-shells.sh b/themes/sea-shells.sh index 9312461..d426940 100755 --- a/themes/sea-shells.sh +++ b/themes/sea-shells.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/seafoam-pastel.sh b/themes/seafoam-pastel.sh index 51af4df..fc7cce1 100755 --- a/themes/seafoam-pastel.sh +++ b/themes/seafoam-pastel.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/seti.sh b/themes/seti.sh index 44372d4..f3c4332 100755 --- a/themes/seti.sh +++ b/themes/seti.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/shaman.sh b/themes/shaman.sh index 6ca955f..f62d98a 100755 --- a/themes/shaman.sh +++ b/themes/shaman.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/shel.sh b/themes/shel.sh index a5e8c91..bb715f0 100755 --- a/themes/shel.sh +++ b/themes/shel.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/slate.sh b/themes/slate.sh index e5cd795..056123e 100755 --- a/themes/slate.sh +++ b/themes/slate.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/smyck.sh b/themes/smyck.sh index 6cc4fda..cca388a 100755 --- a/themes/smyck.sh +++ b/themes/smyck.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/soft-server.sh b/themes/soft-server.sh index 728fd0f..394327e 100755 --- a/themes/soft-server.sh +++ b/themes/soft-server.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/solarized-darcula.sh b/themes/solarized-darcula.sh index f0fc4b3..4b8a723 100755 --- a/themes/solarized-darcula.sh +++ b/themes/solarized-darcula.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/solarized-dark-higher-contrast.sh b/themes/solarized-dark-higher-contrast.sh index be3e1f6..a8fc74a 100755 --- a/themes/solarized-dark-higher-contrast.sh +++ b/themes/solarized-dark-higher-contrast.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/solarized-dark.sh b/themes/solarized-dark.sh index 273efe4..0400a54 100755 --- a/themes/solarized-dark.sh +++ b/themes/solarized-dark.sh @@ -42,6 +42,13 @@ function gogh_colors () { 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")" @@ -52,5 +59,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/solarized-light.sh b/themes/solarized-light.sh index d5ef49b..3f9c495 100755 --- a/themes/solarized-light.sh +++ b/themes/solarized-light.sh @@ -42,6 +42,13 @@ function gogh_colors () { 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")" @@ -52,5 +59,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/spacedust.sh b/themes/spacedust.sh index bf3065a..f8f51ab 100755 --- a/themes/spacedust.sh +++ b/themes/spacedust.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/spacegray-eighties-dull.sh b/themes/spacegray-eighties-dull.sh index 9197c4e..0f8cb66 100755 --- a/themes/spacegray-eighties-dull.sh +++ b/themes/spacegray-eighties-dull.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/spacegray-eighties.sh b/themes/spacegray-eighties.sh index a49e44f..e968995 100755 --- a/themes/spacegray-eighties.sh +++ b/themes/spacegray-eighties.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/spacegray.sh b/themes/spacegray.sh index 8897ab3..f31e2a4 100755 --- a/themes/spacegray.sh +++ b/themes/spacegray.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/spring.sh b/themes/spring.sh index 4a1c86d..66e1d2a 100755 --- a/themes/spring.sh +++ b/themes/spring.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/square.sh b/themes/square.sh index ae211fd..49a8874 100755 --- a/themes/square.sh +++ b/themes/square.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/sundried.sh b/themes/sundried.sh index a516a05..d904349 100755 --- a/themes/sundried.sh +++ b/themes/sundried.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/symphonic.sh b/themes/symphonic.sh index 6eb459f..3f2afda 100755 --- a/themes/symphonic.sh +++ b/themes/symphonic.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/teerb.sh b/themes/teerb.sh index 1e15765..e22a026 100755 --- a/themes/teerb.sh +++ b/themes/teerb.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/terminal-basic.sh b/themes/terminal-basic.sh index 93a6238..0ffe2d3 100755 --- a/themes/terminal-basic.sh +++ b/themes/terminal-basic.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/terminix-dark.sh b/themes/terminix-dark.sh index 55ff45a..4fd598d 100755 --- a/themes/terminix-dark.sh +++ b/themes/terminix-dark.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/thayer-bright.sh b/themes/thayer-bright.sh index 9bfa553..b3c603c 100755 --- a/themes/thayer-bright.sh +++ b/themes/thayer-bright.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tin.sh b/themes/tin.sh index f29bccd..0c67f66 100755 --- a/themes/tin.sh +++ b/themes/tin.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tomorrow-night-blue.sh b/themes/tomorrow-night-blue.sh index d33c290..97b790c 100755 --- a/themes/tomorrow-night-blue.sh +++ b/themes/tomorrow-night-blue.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tomorrow-night-bright.sh b/themes/tomorrow-night-bright.sh index 36985f3..aa4ad21 100755 --- a/themes/tomorrow-night-bright.sh +++ b/themes/tomorrow-night-bright.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tomorrow-night-eighties.sh b/themes/tomorrow-night-eighties.sh index 9ce3dfa..41a00b1 100755 --- a/themes/tomorrow-night-eighties.sh +++ b/themes/tomorrow-night-eighties.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tomorrow-night.sh b/themes/tomorrow-night.sh index 434a4e3..941663f 100755 --- a/themes/tomorrow-night.sh +++ b/themes/tomorrow-night.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tomorrow.night.sh b/themes/tomorrow.night.sh index 889dec7..426e8fb 100755 --- a/themes/tomorrow.night.sh +++ b/themes/tomorrow.night.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/tomorrow.sh b/themes/tomorrow.sh index 9ce67a7..368395b 100755 --- a/themes/tomorrow.sh +++ b/themes/tomorrow.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/toy-chest.sh b/themes/toy-chest.sh index 834ef97..126be37 100755 --- a/themes/toy-chest.sh +++ b/themes/toy-chest.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/treehouse.sh b/themes/treehouse.sh index f6639ae..1054f8f 100755 --- a/themes/treehouse.sh +++ b/themes/treehouse.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/twilight.sh b/themes/twilight.sh index e6c5d7a..dc6d76f 100755 --- a/themes/twilight.sh +++ b/themes/twilight.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/ura.sh b/themes/ura.sh index e51c345..57d721e 100755 --- a/themes/ura.sh +++ b/themes/ura.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/urple.sh b/themes/urple.sh index dea9cd0..1798fda 100755 --- a/themes/urple.sh +++ b/themes/urple.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/vag.sh b/themes/vag.sh index f87723f..9003353 100755 --- a/themes/vag.sh +++ b/themes/vag.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -51,5 +58,12 @@ source $PARENT_PATH"/apply-colors.sh" else gogh_colors -source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/vaughn.sh b/themes/vaughn.sh index cbd0363..837de3c 100755 --- a/themes/vaughn.sh +++ b/themes/vaughn.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/vibrant-ink.sh b/themes/vibrant-ink.sh index be3db67..cd1c30f 100755 --- a/themes/vibrant-ink.sh +++ b/themes/vibrant-ink.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/warm-neon.sh b/themes/warm-neon.sh index f33affe..c778930 100755 --- a/themes/warm-neon.sh +++ b/themes/warm-neon.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/wez.sh b/themes/wez.sh index 6b1e111..fa37540 100755 --- a/themes/wez.sh +++ b/themes/wez.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/wild-cherry.sh b/themes/wild-cherry.sh index 1522ccb..d1ce120 100755 --- a/themes/wild-cherry.sh +++ b/themes/wild-cherry.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/wombat.sh b/themes/wombat.sh index f5171c5..77dfa94 100755 --- a/themes/wombat.sh +++ b/themes/wombat.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/wryan.sh b/themes/wryan.sh index e4d064c..b98c044 100755 --- a/themes/wryan.sh +++ b/themes/wryan.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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 diff --git a/themes/zenburn.sh b/themes/zenburn.sh index ea8b6c7..44454ee 100755 --- a/themes/zenburn.sh +++ b/themes/zenburn.sh @@ -41,6 +41,13 @@ function gogh_colors () { 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")" @@ -48,5 +55,12 @@ gogh_colors if [ -e $PARENT_PATH"/apply-colors.sh" ]; then source $PARENT_PATH"/apply-colors.sh" else - source <(wget -O - https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh) + 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