From d048757efee2c383bc92971866fef4c7d1104ade Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 25 Nov 2024 17:57:41 +0100 Subject: [PATCH] main/help --- sh/main.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 665e707..9c1c59d 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -117,14 +117,18 @@ main_source_file() { fi } -_sh_main() { - main_source_file "${ENV}" - main_source_directory "${SH_USER}" - sh_source_check "$(dirname "${ENV}")" +sh_help() { _sh_main_log "" \ "sh_… = shell functions" \ "a__… = aliases" \ "u__… = user" } +_sh_main() { + main_source_file "${ENV}" + main_source_directory "${SH_USER}" + sh_source_check "$(dirname "${ENV}")" + sh_help +} + _sh_main