shell/interactive

This commit is contained in:
Marc Beninca 2024-11-29 23:41:57 +01:00
parent e4d0b71e5d
commit 531aa618bb
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 8 additions and 8 deletions

View file

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

View file

@ -62,6 +62,14 @@ 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}"