Compare commits

...

2 commits

Author SHA1 Message Date
f9f93101ad
shell/case
All checks were successful
/ job (push) Successful in 3m56s
2025-07-08 02:13:03 +02:00
259aae444a
shell/bash
All checks were successful
/ job (push) Successful in 3m56s
2025-07-08 01:58:47 +02:00

View file

@ -2,23 +2,29 @@
# │ shell │ bash │ # │ 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 # shellcheck disable=SC3033
..() { ..() {
cd .. cd ..
} }
# shellcheck disable=SC3033 # shellcheck disable=SC3033
...() { ...() {
cd ../.. cd ../..
} }
# shellcheck disable=SC3033 # shellcheck disable=SC3033
....() { ....() {
cd ../../.. cd ../../..
} }
# shellcheck disable=SC3033 # shellcheck disable=SC3033
.....() { .....() {
cd ../../../.. cd ../../../..
} }
fi