diff --git a/bin/rbtop b/bin/rbtop new file mode 100755 index 0000000..2efe832 --- /dev/null +++ b/bin/rbtop @@ -0,0 +1,3 @@ +#!/bin/bash +# rbtop - Connect to apricot and run btop (transient install) +ssh -t apricot.lan "dnf install -y btop && btop" diff --git a/bin/rclaude b/bin/rclaude index f4d107d..a508f00 100755 --- a/bin/rclaude +++ b/bin/rclaude @@ -344,10 +344,22 @@ cmd_version() { fi } +cmd_help() { + # Extract the leading comment block (everything from line 2 up to the + # first blank line after `# Usage:`), strip leading "# " / "#", and print. + _self=$(resolve_self) + awk ' + NR==1 { next } # skip shebang + /^[^#]/ { exit } # stop at first non-comment line + { sub(/^# ?/, ""); print } + ' "$_self" +} + case ${1:-} in - list) shift; cmd_list "$@"; exit ;; - resume) shift; cmd_resume "$@"; exit ;; - -v|--version) cmd_version; exit ;; + list) shift; cmd_list "$@"; exit ;; + resume) shift; cmd_resume "$@"; exit ;; + -v|--version) cmd_version; exit ;; + -h|--help|help) cmd_help; exit ;; esac # ---------------------------------------------------------------------------