diff --git a/bash/bashrc b/bash/bashrc index 6ba732a..8445753 100755 --- a/bash/bashrc +++ b/bash/bashrc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash shopt -s autocd shopt -s checkwinsize diff --git a/bin/clean.sh b/bin/clean.sh index c422793..ddf0d40 100755 --- a/bin/clean.sh +++ b/bin/clean.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh case "$1" in all) diff --git a/i3/checknofullscreen.sh b/i3/checknofullscreen.sh index 95f8e2a..b40864b 100755 --- a/i3/checknofullscreen.sh +++ b/i3/checknofullscreen.sh @@ -1,4 +1,5 @@ -#! /bin/bash +#!/bin/sh + FOCUSED=$(xprop -root _NET_ACTIVE_WINDOW | awk -F' ' '{print $NF}') if xprop -id ${FOCUSED} _NET_WM_STATE | grep -q _NET_WM_STATE_FULLSCREEN; then exit 1 diff --git a/i3/lockscreen.sh b/i3/lockscreen.sh index f83328f..828b5de 100755 --- a/i3/lockscreen.sh +++ b/i3/lockscreen.sh @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # shellcheck source=.lockvars # shellcheck disable=SC1091 diff --git a/shell/aliases.sh b/shell/aliases.sh index 48294ab..2ac040e 100755 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -1,4 +1,5 @@ #!/bin/sh + #alias definitions alias chmox="chmod +x" alias cd..="cd .." diff --git a/shell/cd.sh b/shell/cd.sh index 5447073..929866e 100755 --- a/shell/cd.sh +++ b/shell/cd.sh @@ -1,4 +1,5 @@ #!/bin/sh + #correct some fast tipped cds function c { if [ $1 == "d.." ]; then diff --git a/shell/command-not-found.sh b/shell/command-not-found.sh index e0af920..d87fbc3 100755 --- a/shell/command-not-found.sh +++ b/shell/command-not-found.sh @@ -1,2 +1,3 @@ #!/bin/sh + [ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh diff --git a/shell/extract.sh b/shell/extract.sh index fd43197..be0b993 100755 --- a/shell/extract.sh +++ b/shell/extract.sh @@ -1,3 +1,5 @@ +#!/bin/sh + x() { for zipfile in $*; do local extractor diff --git a/shell/liquidprompt.sh b/shell/liquidprompt.sh index 76872c5..e8d802a 100755 --- a/shell/liquidprompt.sh +++ b/shell/liquidprompt.sh @@ -1,3 +1,5 @@ +#!/bin/sh + #LP_ENABLE_RUNTIME=1 LP_ENABLE_TITLE=1 LP_ENABLE_SSH_COLORS=1 diff --git a/shell/load b/shell/load index 7b556bb..6864f59 100755 --- a/shell/load +++ b/shell/load @@ -1,4 +1,5 @@ #!/bin/sh + for profile in ~/.profile.d/*.sh; do if [ -x "$profile" ]; then source $profile diff --git a/shell/paths.sh b/shell/paths.sh index 6fdfde0..4a1be10 100755 --- a/shell/paths.sh +++ b/shell/paths.sh @@ -1,4 +1,5 @@ #!/bin/sh + function set_path(){ if [[ -d "$1" ]]; then export PATH=$1:$PATH diff --git a/shell/vars.sh b/shell/vars.sh index 2660602..8c6116e 100755 --- a/shell/vars.sh +++ b/shell/vars.sh @@ -1,4 +1,5 @@ #!/bin/sh + export EDITOR=vim export VISUAL=vim export BROWSER=firefox