From 56c396f56c8ecca0a53bc4e6f89e70fb67a37917 Mon Sep 17 00:00:00 2001 From: Piotr Gaczkowski Date: Sat, 19 Mar 2016 16:40:48 +0100 Subject: [PATCH] Source local file if available --- themes/aci.sh | 3 ++- themes/aco.sh | 3 ++- themes/azu.sh | 3 ++- themes/bim.sh | 3 ++- themes/cai.sh | 3 ++- themes/chalk.sh | 3 ++- themes/dracula.sh | 3 ++- themes/elementary.sh | 3 ++- themes/elic.sh | 3 ++- themes/elio.sh | 3 ++- themes/flat.sh | 3 ++- themes/freya.sh | 3 ++- themes/hemisu.dark.sh | 3 ++- themes/hemisu.light.sh | 3 ++- themes/hybrid.sh | 3 ++- themes/jup.sh | 3 ++- themes/mar.sh | 3 ++- themes/material.sh | 3 ++- themes/miu.sh | 3 ++- themes/monokai.dark.sh | 3 ++- themes/nep.sh | 3 ++- themes/ocean.dark.sh | 3 ++- themes/one.dark.sh | 3 ++- themes/one.light.sh | 3 ++- themes/pali.sh | 3 ++- themes/peppermint.sh | 3 ++- themes/sat.sh | 3 ++- themes/shel.sh | 3 ++- themes/smyck.sh | 3 ++- themes/solarized.dark.sh | 3 ++- themes/solarized.light.sh | 3 ++- themes/tin.sh | 3 ++- themes/tomorrow.night.blue.sh | 3 ++- themes/tomorrow.night.bright.sh | 3 ++- themes/tomorrow.night.eighties.sh | 3 ++- themes/tomorrow.night.sh | 3 ++- themes/tomorrow.sh | 3 ++- themes/ura.sh | 3 ++- themes/vag.sh | 3 ++- 39 files changed, 78 insertions(+), 39 deletions(-) diff --git a/themes/aci.sh b/themes/aci.sh index 5655f8b..e3b2b30 100755 --- a/themes/aci.sh +++ b/themes/aci.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/aco.sh b/themes/aco.sh index ad7e7a4..ebcaa21 100755 --- a/themes/aco.sh +++ b/themes/aco.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/azu.sh b/themes/azu.sh index a816834..9da4567 100755 --- a/themes/azu.sh +++ b/themes/azu.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/bim.sh b/themes/bim.sh index f7b3830..52cfd10 100755 --- a/themes/bim.sh +++ b/themes/bim.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/cai.sh b/themes/cai.sh index 926df41..70ac2e8 100755 --- a/themes/cai.sh +++ b/themes/cai.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/chalk.sh b/themes/chalk.sh index 52b906e..5f9ec82 100755 --- a/themes/chalk.sh +++ b/themes/chalk.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/dracula.sh b/themes/dracula.sh index 66d9a97..1857fc3 100755 --- a/themes/dracula.sh +++ b/themes/dracula.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/elementary.sh b/themes/elementary.sh index a0fa213..352381e 100755 --- a/themes/elementary.sh +++ b/themes/elementary.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/elic.sh b/themes/elic.sh index d39e3d1..d816695 100755 --- a/themes/elic.sh +++ b/themes/elic.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/elio.sh b/themes/elio.sh index efe29cc..6d5812e 100755 --- a/themes/elio.sh +++ b/themes/elio.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/flat.sh b/themes/flat.sh index 32675ea..3c82aec 100755 --- a/themes/flat.sh +++ b/themes/flat.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/freya.sh b/themes/freya.sh index d0ba5db..32d4a9f 100755 --- a/themes/freya.sh +++ b/themes/freya.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#839496" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/hemisu.dark.sh b/themes/hemisu.dark.sh index 6dab857..dca1149 100755 --- a/themes/hemisu.dark.sh +++ b/themes/hemisu.dark.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#BAFFAA" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/hemisu.light.sh b/themes/hemisu.light.sh index 8726b34..81d10f4 100755 --- a/themes/hemisu.light.sh +++ b/themes/hemisu.light.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#FF0054" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/hybrid.sh b/themes/hybrid.sh index 020e2f9..9e4d376 100755 --- a/themes/hybrid.sh +++ b/themes/hybrid.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/jup.sh b/themes/jup.sh index ce0f24a..9e1f196 100755 --- a/themes/jup.sh +++ b/themes/jup.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/mar.sh b/themes/mar.sh index 4384c34..04559ac 100755 --- a/themes/mar.sh +++ b/themes/mar.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/material.sh b/themes/material.sh index 337bda8..8facd08 100755 --- a/themes/material.sh +++ b/themes/material.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#657B83" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/miu.sh b/themes/miu.sh index 300e1d0..7664e61 100755 --- a/themes/miu.sh +++ b/themes/miu.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/monokai.dark.sh b/themes/monokai.dark.sh index 5cd01f2..237c3dc 100755 --- a/themes/monokai.dark.sh +++ b/themes/monokai.dark.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/nep.sh b/themes/nep.sh index 550ea93..c41da08 100755 --- a/themes/nep.sh +++ b/themes/nep.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/ocean.dark.sh b/themes/ocean.dark.sh index 3659d3e..7e8f29a 100755 --- a/themes/ocean.dark.sh +++ b/themes/ocean.dark.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#979CAC" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/one.dark.sh b/themes/one.dark.sh index fb0c308..2f831c9 100755 --- a/themes/one.dark.sh +++ b/themes/one.dark.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#5C6370" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/one.light.sh b/themes/one.light.sh index cf7ff45..98854a9 100755 --- a/themes/one.light.sh +++ b/themes/one.light.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#2A2B32" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/pali.sh b/themes/pali.sh index 9b9f0f7..df84051 100755 --- a/themes/pali.sh +++ b/themes/pali.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/peppermint.sh b/themes/peppermint.sh index 8ac1db7..5923409 100755 --- a/themes/peppermint.sh +++ b/themes/peppermint.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#BBBBBB" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/sat.sh b/themes/sat.sh index 9d250d4..0805091 100755 --- a/themes/sat.sh +++ b/themes/sat.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/shel.sh b/themes/shel.sh index 824c715..9df1506 100755 --- a/themes/shel.sh +++ b/themes/shel.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/smyck.sh b/themes/smyck.sh index 1b6270d..c581d53 100755 --- a/themes/smyck.sh +++ b/themes/smyck.sh @@ -27,5 +27,6 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/solarized.dark.sh b/themes/solarized.dark.sh index 93db962..1a39da9 100755 --- a/themes/solarized.dark.sh +++ b/themes/solarized.dark.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/solarized.light.sh b/themes/solarized.light.sh index f990338..48db23b 100755 --- a/themes/solarized.light.sh +++ b/themes/solarized.light.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/tin.sh b/themes/tin.sh index 166d835..6b77aff 100755 --- a/themes/tin.sh +++ b/themes/tin.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/tomorrow.night.blue.sh b/themes/tomorrow.night.blue.sh index 7b7f61c..6661bcc 100755 --- a/themes/tomorrow.night.blue.sh +++ b/themes/tomorrow.night.blue.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#FFFEFE" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/tomorrow.night.bright.sh b/themes/tomorrow.night.bright.sh index 686cf70..1cd2609 100755 --- a/themes/tomorrow.night.bright.sh +++ b/themes/tomorrow.night.bright.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#E9E9E9" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/tomorrow.night.eighties.sh b/themes/tomorrow.night.eighties.sh index 579a508..65ac0c4 100755 --- a/themes/tomorrow.night.eighties.sh +++ b/themes/tomorrow.night.eighties.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#CCCCCC" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/tomorrow.night.sh b/themes/tomorrow.night.sh index b5c2678..2d98804 100755 --- a/themes/tomorrow.night.sh +++ b/themes/tomorrow.night.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#C4C8C5" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/tomorrow.sh b/themes/tomorrow.sh index 6c77620..d5a6c98 100755 --- a/themes/tomorrow.sh +++ b/themes/tomorrow.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="#4C4C4C" # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/ura.sh b/themes/ura.sh index 92735fb..1a926fa 100755 --- a/themes/ura.sh +++ b/themes/ura.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq) diff --git a/themes/vag.sh b/themes/vag.sh index d86ecc6..5fcd7cf 100755 --- a/themes/vag.sh +++ b/themes/vag.sh @@ -27,4 +27,5 @@ CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor # | # | Apply Colors # | =========================================== -source <(wget -O - http://git.io/vY8Qq) +source $(cd "$(dirname "$(readlink -f "$0")")" && pwd)/../_apply-colors.sh || \ + source <(wget -O - http://git.io/vY8Qq)