From 3dceffeea509e07aa3bc5690ec78e4d51f43c72d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 8 Jul 2025 06:09:14 +0200 Subject: [PATCH] code/init --- sh/code.sh | 7 ++++++- sh/self.sh | 15 ++------------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/sh/code.sh b/sh/code.sh index 8e59a9e..0b1403d 100644 --- a/sh/code.sh +++ b/sh/code.sh @@ -215,6 +215,11 @@ rwx_code_main() { fi # context / shell else - rwx_self_init + # run interactive extras + if rwx_shell_interactive; then + # help + rwx_log + rwx_self_help + fi fi } diff --git a/sh/self.sh b/sh/self.sh index 968c44b..314064a 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -14,23 +14,11 @@ rwx_self_help() { " u__… = user" } -# ╭──────┬──────╮ -# │ self │ init │ -# ╰──────┴──────╯ - -rwx_self_init() { - # run interactive extras - if rwx_shell_interactive; then - # help - rwx_log - rwx_self_help - fi -} - # ╭──────┬────────╮ # │ self │ subset │ # ╰──────┴────────╯ +# TODO move to code module rwx_self_subset() { local argument file root for argument in "${@}"; do @@ -51,6 +39,7 @@ rwx_self_subset() { # │ self │ write │ # ╰──────┴───────╯ +# TODO move to code module rwx_self_write() { local target="${1}" if [ -n "${target}" ]; then