From 683294140c99c23cecd4fde8a9861ec881d05165 Mon Sep 17 00:00:00 2001 From: Louis Taylor Date: Sat, 21 May 2016 16:03:59 +0100 Subject: [PATCH] Do not hardcode path to bash interpreter I am unable to use these scripts on NixOS, since the bash interpreter is in a different location to more conventional distros. Currently is is /nix/store/jlg2n512jxnr1lxs72r1frxqdsf7jpdj-system-path/bin/bash on my machine. This patch uses env to find the correct path to the interpreter. --- _apply-colors.sh | 2 +- base.sh | 2 +- script/gogh.sh | 2 +- test/test.sh | 2 +- themes/aci.sh | 2 +- themes/aco.sh | 2 +- themes/azu.sh | 2 +- themes/bim.sh | 2 +- themes/cai.sh | 2 +- themes/chalk.sh | 2 +- themes/dracula.sh | 2 +- themes/elementary.sh | 2 +- themes/elic.sh | 2 +- themes/elio.sh | 2 +- themes/flat.sh | 2 +- themes/freya.sh | 2 +- themes/hemisu.dark.sh | 2 +- themes/hemisu.light.sh | 2 +- themes/hybrid.sh | 2 +- themes/jup.sh | 2 +- themes/mar.sh | 2 +- themes/material.sh | 2 +- themes/miu.sh | 2 +- themes/monokai.dark.sh | 2 +- themes/nep.sh | 2 +- themes/ocean.dark.sh | 2 +- themes/one.dark.sh | 2 +- themes/one.light.sh | 2 +- themes/pali.sh | 2 +- themes/peppermint.sh | 2 +- themes/sat.sh | 2 +- themes/shel.sh | 2 +- themes/smyck.sh | 2 +- themes/solarized.dark.sh | 2 +- themes/solarized.light.sh | 2 +- themes/tin.sh | 2 +- themes/tomorrow.night.blue.sh | 2 +- themes/tomorrow.night.bright.sh | 2 +- themes/tomorrow.night.eighties.sh | 2 +- themes/tomorrow.night.sh | 2 +- themes/tomorrow.sh | 2 +- themes/ura.sh | 2 +- themes/vag.sh | 2 +- 43 files changed, 43 insertions(+), 43 deletions(-) diff --git a/_apply-colors.sh b/_apply-colors.sh index dcedf4e..76f926e 100644 --- a/_apply-colors.sh +++ b/_apply-colors.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # | # | Convert RGB to gnome colors diff --git a/base.sh b/base.sh index 7d9013b..fa17d85 100755 --- a/base.sh +++ b/base.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#44475a" # HOST diff --git a/script/gogh.sh b/script/gogh.sh index a88007a..2e82657 100755 --- a/script/gogh.sh +++ b/script/gogh.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash echo -e " Gogh diff --git a/test/test.sh b/test/test.sh index cbbbd91..683dc5f 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Reset color diff --git a/themes/aci.sh b/themes/aci.sh index e3b2b30..6ca2042 100755 --- a/themes/aci.sh +++ b/themes/aci.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#363636" # HOST diff --git a/themes/aco.sh b/themes/aco.sh index ebcaa21..b0ccbb3 100755 --- a/themes/aco.sh +++ b/themes/aco.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#3f3f3f" # HOST diff --git a/themes/azu.sh b/themes/azu.sh index 9da4567..603d682 100755 --- a/themes/azu.sh +++ b/themes/azu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/bim.sh b/themes/bim.sh index 52cfd10..90cb047 100755 --- a/themes/bim.sh +++ b/themes/bim.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#2c2423" # HOST diff --git a/themes/cai.sh b/themes/cai.sh index 70ac2e8..e31a98a 100755 --- a/themes/cai.sh +++ b/themes/cai.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/chalk.sh b/themes/chalk.sh index 5f9ec82..80a6b72 100755 --- a/themes/chalk.sh +++ b/themes/chalk.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#646464" # HOST diff --git a/themes/dracula.sh b/themes/dracula.sh index 1857fc3..d170025 100755 --- a/themes/dracula.sh +++ b/themes/dracula.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#44475a" # HOST diff --git a/themes/elementary.sh b/themes/elementary.sh index 352381e..ab55409 100755 --- a/themes/elementary.sh +++ b/themes/elementary.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#303030" # HOST diff --git a/themes/elic.sh b/themes/elic.sh index d816695..ddffca9 100755 --- a/themes/elic.sh +++ b/themes/elic.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#303030" # HOST diff --git a/themes/elio.sh b/themes/elio.sh index 6d5812e..b8b7b5e 100755 --- a/themes/elio.sh +++ b/themes/elio.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#303030" # HOST diff --git a/themes/flat.sh b/themes/flat.sh index 3c82aec..2b4ccb2 100755 --- a/themes/flat.sh +++ b/themes/flat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#2c3e50" # HOST diff --git a/themes/freya.sh b/themes/freya.sh index 32d4a9f..e223ab3 100755 --- a/themes/freya.sh +++ b/themes/freya.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ==================== CONFIG THIS ========================================= # COLOR_01="#073642" # HOST diff --git a/themes/hemisu.dark.sh b/themes/hemisu.dark.sh index dca1149..39e5a03 100755 --- a/themes/hemisu.dark.sh +++ b/themes/hemisu.dark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#444444" diff --git a/themes/hemisu.light.sh b/themes/hemisu.light.sh index 81d10f4..9264db8 100755 --- a/themes/hemisu.light.sh +++ b/themes/hemisu.light.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#777777" diff --git a/themes/hybrid.sh b/themes/hybrid.sh index 9e4d376..327e035 100755 --- a/themes/hybrid.sh +++ b/themes/hybrid.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#282a2e" # HOST diff --git a/themes/jup.sh b/themes/jup.sh index 9e1f196..3e07201 100755 --- a/themes/jup.sh +++ b/themes/jup.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/mar.sh b/themes/mar.sh index 04559ac..51fd4a5 100755 --- a/themes/mar.sh +++ b/themes/mar.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/material.sh b/themes/material.sh index 8facd08..f88f3bc 100755 --- a/themes/material.sh +++ b/themes/material.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#073641" diff --git a/themes/miu.sh b/themes/miu.sh index 7664e61..83a0495 100755 --- a/themes/miu.sh +++ b/themes/miu.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/monokai.dark.sh b/themes/monokai.dark.sh index 237c3dc..11cfdda 100755 --- a/themes/monokai.dark.sh +++ b/themes/monokai.dark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#75715e" # HOST diff --git a/themes/nep.sh b/themes/nep.sh index c41da08..94d2353 100755 --- a/themes/nep.sh +++ b/themes/nep.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/ocean.dark.sh b/themes/ocean.dark.sh index 7e8f29a..402c268 100755 --- a/themes/ocean.dark.sh +++ b/themes/ocean.dark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#4F4F4F" diff --git a/themes/one.dark.sh b/themes/one.dark.sh index 2f831c9..552e772 100755 --- a/themes/one.dark.sh +++ b/themes/one.dark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/one.light.sh b/themes/one.light.sh index 98854a9..c0f5b9e 100755 --- a/themes/one.light.sh +++ b/themes/one.light.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/pali.sh b/themes/pali.sh index df84051..66e954f 100755 --- a/themes/pali.sh +++ b/themes/pali.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#0a0a0a" # HOST diff --git a/themes/peppermint.sh b/themes/peppermint.sh index 5923409..97c9efa 100755 --- a/themes/peppermint.sh +++ b/themes/peppermint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#353535" diff --git a/themes/sat.sh b/themes/sat.sh index 0805091..237ade3 100755 --- a/themes/sat.sh +++ b/themes/sat.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/shel.sh b/themes/shel.sh index 9df1506..4c9cbd7 100755 --- a/themes/shel.sh +++ b/themes/shel.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#2c2423" # HOST diff --git a/themes/smyck.sh b/themes/smyck.sh index c581d53..a4f6704 100755 --- a/themes/smyck.sh +++ b/themes/smyck.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/solarized.dark.sh b/themes/solarized.dark.sh index 6d1577b..f2dadc5 100755 --- a/themes/solarized.dark.sh +++ b/themes/solarized.dark.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#073642" # HOST diff --git a/themes/solarized.light.sh b/themes/solarized.light.sh index 53aa169..32a3385 100755 --- a/themes/solarized.light.sh +++ b/themes/solarized.light.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#073642" # HOST diff --git a/themes/tin.sh b/themes/tin.sh index 6b77aff..a000b32 100755 --- a/themes/tin.sh +++ b/themes/tin.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/tomorrow.night.blue.sh b/themes/tomorrow.night.blue.sh index 6661bcc..2461b2c 100755 --- a/themes/tomorrow.night.blue.sh +++ b/themes/tomorrow.night.blue.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/tomorrow.night.bright.sh b/themes/tomorrow.night.bright.sh index 1cd2609..a355fbe 100755 --- a/themes/tomorrow.night.bright.sh +++ b/themes/tomorrow.night.bright.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/tomorrow.night.eighties.sh b/themes/tomorrow.night.eighties.sh index 65ac0c4..72de5c7 100755 --- a/themes/tomorrow.night.eighties.sh +++ b/themes/tomorrow.night.eighties.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/tomorrow.night.sh b/themes/tomorrow.night.sh index 2d98804..98023e8 100755 --- a/themes/tomorrow.night.sh +++ b/themes/tomorrow.night.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/tomorrow.sh b/themes/tomorrow.sh index d5a6c98..7fa8301 100755 --- a/themes/tomorrow.sh +++ b/themes/tomorrow.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" diff --git a/themes/ura.sh b/themes/ura.sh index 1a926fa..ade06f3 100755 --- a/themes/ura.sh +++ b/themes/ura.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#000000" # HOST diff --git a/themes/vag.sh b/themes/vag.sh index 5fcd7cf..50c19b2 100755 --- a/themes/vag.sh +++ b/themes/vag.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # ====================CONFIG THIS =============================== # COLOR_01="#303030" # HOST