rwx/sh/shell/bash.sh

32 lines
491 B
Bash
Raw Normal View History

2025-07-07 21:43:48 +02:00
# ╭───────┬──────╮
# │ shell │ bash │
# ╰───────┴──────╯
2025-07-08 02:13:03 +02:00
# based on currently running shell
case "${RWX_SHELL}" in
2025-07-08 06:39:28 +02:00
# continue if it can handle it
2025-07-08 06:29:16 +02:00
"bash") ;;
2025-07-08 06:39:28 +02:00
# otherwise skip incorrect names to come
2025-07-08 06:29:16 +02:00
*) return ;;
2025-07-08 02:13:03 +02:00
esac
2025-07-07 21:38:07 +02:00
# shellcheck disable=SC3033
..() {
cd ..
}
2025-07-08 01:58:47 +02:00
2025-07-07 21:38:07 +02:00
# shellcheck disable=SC3033
...() {
cd ../..
}
2025-07-08 01:58:47 +02:00
2025-07-07 21:38:07 +02:00
# shellcheck disable=SC3033
....() {
cd ../../..
}
2025-07-08 01:58:47 +02:00
2025-07-07 21:38:07 +02:00
# shellcheck disable=SC3033
.....() {
cd ../../../..
}