main/shell

This commit is contained in:
Marc Beninca 2025-07-08 01:15:21 +02:00
parent 19249747c0
commit aadfe212c2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -37,18 +37,6 @@ RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
# path to the entrypoint main file of the project
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}"
# ╭──────┬───────╮
# │ main │ shell │
# ╰──────┴───────╯
# test if active shell is in interactive mode
rwx_shell_interactive() {
case "${-}" in
*i*) ;;
*) return 1 ;;
esac
}
# ╭──────┬──────╮
# │ main │ find │
# ╰──────┴──────╯
@ -78,6 +66,18 @@ rwx_find_shell() {
################################################################################
# ╭──────┬───────╮
# │ main │ shell │
# ╰──────┴───────╯
# test if active shell is in interactive mode
rwx_shell_interactive() {
case "${-}" in
*i*) ;;
*) return 1 ;;
esac
}
# ╭──────┬─────╮
# │ main │ log │
# ╰──────┴─────╯