self/help
This commit is contained in:
parent
5e8e84246d
commit
c60ab4f5f5
2 changed files with 8 additions and 9 deletions
10
sh/main.sh
10
sh/main.sh
|
@ -81,14 +81,6 @@ rwx_grep_functions() {
|
||||||
cut --delimiter "(" --fields 1
|
cut --delimiter "(" --fields 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# output help message
|
|
||||||
rwx_help() {
|
|
||||||
rwx_log \
|
|
||||||
"rwx_… = functions" \
|
|
||||||
" a__… = aliases" \
|
|
||||||
" u__… = user"
|
|
||||||
}
|
|
||||||
|
|
||||||
# test if active shell is in interactive mode
|
# test if active shell is in interactive mode
|
||||||
rwx_shell_interactive() {
|
rwx_shell_interactive() {
|
||||||
case "${-}" in
|
case "${-}" in
|
||||||
|
@ -146,7 +138,7 @@ rwx_main() {
|
||||||
rwx_shellcheck_check "${RWX_ROOT_SYSTEM}"
|
rwx_shellcheck_check "${RWX_ROOT_SYSTEM}"
|
||||||
# help
|
# help
|
||||||
rwx_log
|
rwx_log
|
||||||
rwx_help
|
rwx_self_help
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
sh/self.sh
Normal file
7
sh/self.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# output help message
|
||||||
|
rwx_self_help() {
|
||||||
|
rwx_log \
|
||||||
|
"rwx_… = functions" \
|
||||||
|
" a__… = aliases" \
|
||||||
|
" u__… = user"
|
||||||
|
}
|
Loading…
Reference in a new issue