mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
Change htitle to go comments by default
This commit is contained in:
parent
7f6ccf61d5
commit
97b56a17ab
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
# Produces a centered title in the middle of a horizontal rule of text.
|
# Produces a centered title in the middle of a horizontal rule of text.
|
||||||
|
|
||||||
|
pre='//'
|
||||||
|
|
||||||
_filter(){
|
_filter(){
|
||||||
[[ -n "$1" ]] && return 1
|
[[ -n "$1" ]] && return 1
|
||||||
while IFS= read -ra args; do
|
while IFS= read -ra args; do
|
||||||
@ -17,7 +19,7 @@ htitle() {
|
|||||||
local -i left=$side
|
local -i left=$side
|
||||||
local -i right=$side
|
local -i right=$side
|
||||||
(( len % 2 == 1 )) && ((right -= 1))
|
(( len % 2 == 1 )) && ((right -= 1))
|
||||||
echo "# $(echon "$char" "$left") "$str" $(echon "$char" "$right")"
|
echo "$pre $(echon "$char" "$left") "$str" $(echon "$char" "$right")"
|
||||||
}
|
}
|
||||||
|
|
||||||
htitle "$@"
|
htitle "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user