Change htitle to go comments by default

main
rwxrob 2 years ago
parent ede9f49e70
commit e849f70a64

@ -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 "$@"

Loading…
Cancel
Save