diff --git a/.local/bin/AC_notify b/.local/bin/AC_notify index 9ec1cf2..f19937c 100755 --- a/.local/bin/AC_notify +++ b/.local/bin/AC_notify @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/README.md b/.local/bin/README.md index 405ce01..325d302 100644 --- a/.local/bin/README.md +++ b/.local/bin/README.md @@ -2,7 +2,7 @@ **Hello, world!** This is my scripts directory. Feel free to use it at your convenience :) -**/!\\** Those scripts are POSIX-compliant (hence `#! /bin/sh`), they are supposed to be run with such shell (BaSH, zsh, dash...); FISH, for example, might cause problems (with `if` statements, for instance) if a script is run directly in a terminal; I recommend launching background scripts within `.xinit` to avoid those issues +**/!\\** Those scripts are POSIX-compliant (hence `#! /usr/bin/env sh`), they are supposed to be run with such shell (BaSH, zsh, dash...); FISH, for example, might cause problems (with `if` statements, for instance) if a script is run directly in a terminal; I recommend launching background scripts within `.xinit` to avoid those issues ## Scripts diff --git a/.local/bin/arch_setup b/.local/bin/arch_setup index d5b1dae..ff226c8 100755 --- a/.local/bin/arch_setup +++ b/.local/bin/arch_setup @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/audio_notify b/.local/bin/audio_notify index 0f41587..905ee20 100755 --- a/.local/bin/audio_notify +++ b/.local/bin/audio_notify @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/backlight_notify b/.local/bin/backlight_notify index 68c1fa6..d5f7182 100755 --- a/.local/bin/backlight_notify +++ b/.local/bin/backlight_notify @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/bat_notify b/.local/bin/bat_notify index 3e7cbac..0056825 100755 --- a/.local/bin/bat_notify +++ b/.local/bin/bat_notify @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/bibinput b/.local/bin/bibinput index e76624f..690d654 100755 --- a/.local/bin/bibinput +++ b/.local/bin/bibinput @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/bibshow b/.local/bin/bibshow index cd344ff..f8882f8 100755 --- a/.local/bin/bibshow +++ b/.local/bin/bibshow @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/compiler b/.local/bin/compiler index 6bcba90..e9c7485 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted from Luke Smith - lukesmith.xyz) diff --git a/.local/bin/displayselect b/.local/bin/displayselect index 9964766..2ce3117 100755 --- a/.local/bin/displayselect +++ b/.local/bin/displayselect @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted from Luke Smith - lukesmith.xyz) diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index 195f49a..512afbe 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted from Luke Smith - lukesmith.xyz) diff --git a/.local/bin/dmenuopen b/.local/bin/dmenuopen index 9090e6c..296cdd0 100755 --- a/.local/bin/dmenuopen +++ b/.local/bin/dmenuopen @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass index a787f4e..d5fc8d4 100755 --- a/.local/bin/dmenupass +++ b/.local/bin/dmenupass @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted from Luke Smith - lukesmith.xyz) diff --git a/.local/bin/dmenuprompt b/.local/bin/dmenuprompt index 0ce2d77..0f78793 100755 --- a/.local/bin/dmenuprompt +++ b/.local/bin/dmenuprompt @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted from Luke Smith - lukesmith.xyz) diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount index 1106d01..d3f366f 100755 --- a/.local/bin/dmenuumount +++ b/.local/bin/dmenuumount @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted form Luke Smith - lukesmith.xyz) diff --git a/.local/bin/dot b/.local/bin/dot index 60f60c7..44467ed 100755 --- a/.local/bin/dot +++ b/.local/bin/dot @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/dwmbar b/.local/bin/dwmbar index 5c1fe02..28f8918 100755 --- a/.local/bin/dwmbar +++ b/.local/bin/dwmbar @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted from Luke Smith - lukesmith.xyz) diff --git a/.local/bin/fetch b/.local/bin/fetch index a9503b1..9e76c5d 100755 --- a/.local/bin/fetch +++ b/.local/bin/fetch @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapated from github.com/jschx/ufetch) diff --git a/.local/bin/kbacklight b/.local/bin/kbacklight index 8b4d352..30889c5 100755 --- a/.local/bin/kbacklight +++ b/.local/bin/kbacklight @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/maker b/.local/bin/maker index d181664..b382a33 100755 --- a/.local/bin/maker +++ b/.local/bin/maker @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/mom b/.local/bin/mom index 3102855..4a6b7d8 100755 --- a/.local/bin/mom +++ b/.local/bin/mom @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/mommerge b/.local/bin/mommerge index afd02f3..0f880b2 100755 --- a/.local/bin/mommerge +++ b/.local/bin/mommerge @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch @@ -12,7 +12,6 @@ ###################################################################### -#! /bin/sh # Gather the mom files from current dir and compile them into ONE pdf file, using my compiler script # /!\ files must be names 0_file0, 1_file1... in order to be processed correctly diff --git a/.local/bin/refbar b/.local/bin/refbar index 4ab3b51..19a7bc6 100755 --- a/.local/bin/refbar +++ b/.local/bin/refbar @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted form Luke Smith - lukesmith.xyz) diff --git a/.local/bin/sbacklight b/.local/bin/sbacklight index 5c542fc..7ee6cd8 100755 --- a/.local/bin/sbacklight +++ b/.local/bin/sbacklight @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/setbg b/.local/bin/setbg index cc58578..9046e43 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/texclear b/.local/bin/texclear index f7339ba..74965ae 100755 --- a/.local/bin/texclear +++ b/.local/bin/texclear @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch (adapted form Luke Smith - lukesmith.xyz) diff --git a/.local/bin/texer b/.local/bin/texer index 4ac5ec4..1c2c012 100755 --- a/.local/bin/texer +++ b/.local/bin/texer @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch diff --git a/.local/bin/webupdate b/.local/bin/webupdate index 104c2b1..8f09d1d 100755 --- a/.local/bin/webupdate +++ b/.local/bin/webupdate @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh ###################################################################### # @author : swytch