From c60ab4f5f565c9a653196187d68578bb23e8e7f2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 22:54:00 +0100 Subject: [PATCH] self/help --- sh/main.sh | 10 +--------- sh/self.sh | 7 +++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 sh/self.sh diff --git a/sh/main.sh b/sh/main.sh index 088e438..dfddf39 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -81,14 +81,6 @@ rwx_grep_functions() { 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 rwx_shell_interactive() { case "${-}" in @@ -146,7 +138,7 @@ rwx_main() { rwx_shellcheck_check "${RWX_ROOT_SYSTEM}" # help rwx_log - rwx_help + rwx_self_help fi } diff --git a/sh/self.sh b/sh/self.sh new file mode 100644 index 0000000..134397d --- /dev/null +++ b/sh/self.sh @@ -0,0 +1,7 @@ +# output help message +rwx_self_help() { + rwx_log \ + "rwx_… = functions" \ + " a__… = aliases" \ + " u__… = user" +}