shell/interactive
This commit is contained in:
parent
c032849e95
commit
fbb6e2bb68
2 changed files with 8 additions and 8 deletions
|
@ -31,6 +31,14 @@ rwx_grep_functions() {
|
||||||
# │ core │
|
# │ core │
|
||||||
# ╰──────╯
|
# ╰──────╯
|
||||||
|
|
||||||
|
# test if active shell is in interactive mode
|
||||||
|
rwx_shell_interactive() {
|
||||||
|
case "${-}" in
|
||||||
|
*i*) ;;
|
||||||
|
*) return 1 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# ╭──────┬─────╮
|
# ╭──────┬─────╮
|
||||||
# │ core │ log │
|
# │ core │ log │
|
||||||
# ╰──────┴─────╯
|
# ╰──────┴─────╯
|
||||||
|
|
|
@ -62,14 +62,6 @@ rwx_shell_configure() {
|
||||||
}
|
}
|
||||||
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() {
|
rwx_shell_prompt() {
|
||||||
local date host id
|
local date host id
|
||||||
local code="${1}"
|
local code="${1}"
|
||||||
|
|
Loading…
Reference in a new issue