rwx/sh/shell/bash.sh
2025-07-08 06:39:28 +02:00

31 lines
491 B
Bash

# ╭───────┬──────╮
# │ shell │ bash │
# ╰───────┴──────╯
# based on currently running shell
case "${RWX_SHELL}" in
# continue if it can handle it
"bash") ;;
# otherwise skip incorrect names to come
*) return ;;
esac
# shellcheck disable=SC3033
..() {
cd ..
}
# shellcheck disable=SC3033
...() {
cd ../..
}
# shellcheck disable=SC3033
....() {
cd ../../..
}
# shellcheck disable=SC3033
.....() {
cd ../../../..
}