From 75fa712be49f8caea05ddeab05239625590924ad Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 4 Jul 2025 17:28:03 +0200 Subject: [PATCH 1/5] =?UTF-8?q?=E2=86=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh/alias/git.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sh/alias/git.sh b/sh/alias/git.sh index 35402d9..91e6bdc 100644 --- a/sh/alias/git.sh +++ b/sh/alias/git.sh @@ -516,14 +516,6 @@ a__git_re_set_hard() { "${@}" } -# show a commit -gsc() { a__git_show_commit "${@}"; } -a__git_show_commit() { - git \ - show \ - "${@}" -} - # current state of repository gs() { a__git_status "${@}"; } a__git_status() { @@ -533,6 +525,14 @@ a__git_status() { "${@}" } +# show a commit +gsc() { a__git_show_commit "${@}"; } +a__git_show_commit() { + git \ + show \ + "${@}" +} + # tag a commit gt() { a__git_tag "${@}"; } a__git_tag() { From a8224fe057e481560fdb31571e5156b60df893e9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 4 Jul 2025 19:35:34 +0200 Subject: [PATCH 2/5] gsc --- sh/alias/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/alias/git.sh b/sh/alias/git.sh index 91e6bdc..3e6386e 100644 --- a/sh/alias/git.sh +++ b/sh/alias/git.sh @@ -526,7 +526,7 @@ a__git_status() { } # show a commit -gsc() { a__git_show_commit "${@}"; } +#( gsc a__git_show_commit() { git \ show \ From 3344390f408f32407ed64f272986e3ff4262565f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 4 Jul 2025 20:18:42 +0200 Subject: [PATCH 3/5] targets --- sh/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index ff4c103..e1fb9de 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -186,12 +186,12 @@ rwx_parse_code() { } rwx_parse_constants() { printf "%s\n" "${RWX_CODE}" | - grep "${RWX_REGEX_BEGIN}${RWX_REGEX_CONSTANT}${RWX_REGEX_SET}" | + grep "${RWX_REGEX_TARGET_CONSTANT}" | sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|" } rwx_parse_functions() { printf "%s\n" "${RWX_CODE}" | - grep "${RWX_REGEX_BEGIN}${RWX_REGEX_FUNCTION}${RWX_REGEX_OPEN}" | + grep "${RWX_REGEX_TARGET_FUNCTION}" | sed "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|" } From 25efbc44cf826ec253852873cbfb5491d7414aa9 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 4 Jul 2025 20:24:58 +0200 Subject: [PATCH 4/5] . --- sh/main.sh | 2 +- sh/self.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index e1fb9de..ef831c0 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -73,7 +73,7 @@ rwx_cache() { text="$(cat "${path}")" # all source code RWX_CODE="${RWX_CODE}\ -#↓ ${name} +#. ${name} ${text} " } diff --git a/sh/self.sh b/sh/self.sh index c214105..c181112 100644 --- a/sh/self.sh +++ b/sh/self.sh @@ -8,9 +8,9 @@ rwx_doc() { while IFS= read -r line; do case "${line}" in "#!"*) doc="" ;; - "#↓"*) + "#."*) doc="" - module="$(echo "${line}" | sed "s|#↓ \\(.*\\)|\\1|")" + module="$(echo "${line}" | sed "s|#\\. \\(.*\\)|\\1|")" ;; *"#"*) [ -n "${doc}" ] && doc="${doc} From 0367e39c21355972d34bb6f1e03d9bcc74c4b025 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 4 Jul 2025 21:41:54 +0200 Subject: [PATCH 5/5] =?UTF-8?q?=E2=88=92grep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh/main.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index ef831c0..dc21f3b 100755 --- a/sh/main.sh +++ b/sh/main.sh @@ -186,13 +186,11 @@ rwx_parse_code() { } rwx_parse_constants() { printf "%s\n" "${RWX_CODE}" | - grep "${RWX_REGEX_TARGET_CONSTANT}" | - sed "s|${RWX_REGEX_TARGET_CONSTANT}|\\1|" + sed "/${RWX_REGEX_TARGET_CONSTANT}/s|${RWX_REGEX_TARGET_CONSTANT}|\\1|" } rwx_parse_functions() { printf "%s\n" "${RWX_CODE}" | - grep "${RWX_REGEX_TARGET_FUNCTION}" | - sed "s|${RWX_REGEX_TARGET_FUNCTION}|\\1|" + sed "/${RWX_REGEX_TARGET_FUNCTION}/s|${RWX_REGEX_TARGET_FUNCTION}|\\1|" } # ╭──────┬─────╮