aboutsummaryrefslogtreecommitdiff
path: root/scripts/bbkeys
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/bbkeys')
-rwxr-xr-xscripts/bbkeys2
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