diff --git a/sh/shell/bash.sh b/sh/shell/bash.sh index 400f83c..20529c0 100644 --- a/sh/shell/bash.sh +++ b/sh/shell/bash.sh @@ -2,23 +2,29 @@ # │ shell │ bash │ # ╰───────┴──────╯ -if [ "${RWX_SHELL}" = "bash" ]; then +# based on currently running shell +case "${RWX_SHELL}" in + "bash") ;; + # skip illegal syntax to come + *) return ;; +esac # shellcheck disable=SC3033 ..() { cd .. } + # shellcheck disable=SC3033 ...() { cd ../.. } + # shellcheck disable=SC3033 ....() { cd ../../.. } + # shellcheck disable=SC3033 .....() { cd ../../../.. } - -fi