shell/interactive
This commit is contained in:
parent
e4d0b71e5d
commit
531aa618bb
2 changed files with 8 additions and 8 deletions
|
@ -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 │
|
||||
# ╰──────╯
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue