diff --git a/functions.sh b/functions.sh index 09beb67..8718ac4 100755 --- a/functions.sh +++ b/functions.sh @@ -41,3 +41,8 @@ switch-wall() { ;; esac } + +# handler for launching the script from non-login shells +if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then + "$@" +fi