From 97b56a17abb31f210aa5335399a95edfe7f94cc7 Mon Sep 17 00:00:00 2001 From: rwxrob Date: Tue, 1 Mar 2022 18:04:52 -0500 Subject: [PATCH] Change htitle to go comments by default --- scripts/htitle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/htitle b/scripts/htitle index 67b7038..9189e34 100755 --- a/scripts/htitle +++ b/scripts/htitle @@ -2,6 +2,8 @@ # Produces a centered title in the middle of a horizontal rule of text. +pre='//' + _filter(){ [[ -n "$1" ]] && return 1 while IFS= read -ra args; do @@ -17,7 +19,7 @@ htitle() { local -i left=$side local -i right=$side (( len % 2 == 1 )) && ((right -= 1)) - echo "# $(echon "$char" "$left") "$str" $(echon "$char" "$right")" + echo "$pre $(echon "$char" "$left") "$str" $(echon "$char" "$right")" } htitle "$@"