diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-07-15 19:58:02 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-07-15 19:58:02 -0700 |
| commit | aa9b815dd51e949933edfe43ac1622c26d8d8da0 (patch) | |
| tree | 0f8feae5374f8b3e1306456735957e561ee5fd08 | |
| parent | 4c865cd67be7c60bf0d7a887cf6a57ee7ea4019a (diff) | |
Tweaked ugly hack
| -rwxr-xr-x | scripts/bbkeys | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bbkeys b/scripts/bbkeys index 24bd41c..17c446d 100755 --- a/scripts/bbkeys +++ b/scripts/bbkeys @@ -7,7 +7,7 @@ # The format is: ## <key>(,<key>)*:[ ]+<description>(\n script)+ # # May God have mercy on my soul for creating this abomination: -sed '1,'$LINENO'd; /^$/d; s/^## \(.*\): \(.*\)/'"$(printf '\003')"'bind:\1:# \2/' "$0" | tr '\003' '\000' | bbcmd; exit +awk 'NR<='$LINENO'{next} /^##/{sub(/: /, ":# "); sub(/^## /,"\0bind:")} /./{print}' "$0" | bbcmd; exit ## Section: BB Commands ## ?,F1: Show Help menu |
