shell/interactive

This commit is contained in:
Marc Beninca 2024-11-29 23:56:14 +01:00
parent c032849e95
commit fbb6e2bb68
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 8 additions and 8 deletions

View file

@ -31,6 +31,14 @@ rwx_grep_functions() {
# │ core │
# ╰──────╯
# test if active shell is in interactive mode
rwx_shell_interactive() {
case "${-}" in
*i*) ;;
*) return 1 ;;
esac
}
# ╭──────┬─────╮
# │ core │ log │
# ╰──────┴─────╯

View file

@ -62,14 +62,6 @@ rwx_shell_configure() {
}
rwx_shell_configure
# test if active shell is in interactive mode
rwx_shell_interactive() {
case "${-}" in
*i*) ;;
*) return 1 ;;
esac
}
rwx_shell_prompt() {
local date host id
local code="${1}"