mirror of
https://github.com/Lissy93/dotfiles.git
synced 2025-02-16 15:09:12 +01:00
Adds arrows to HR horizontal line
This commit is contained in:
parent
d59fb09c31
commit
929cee005a
@ -20,9 +20,9 @@ hr_reset="\u001b[0m"
|
|||||||
hr_draw_char() {
|
hr_draw_char() {
|
||||||
local CHAR="$1"
|
local CHAR="$1"
|
||||||
local LINE=''
|
local LINE=''
|
||||||
LINE=$(printf "%*s" "$hr_col_count")
|
LINE=$(printf "%*s" "$hr_col_count - 2")
|
||||||
LINE="${LINE// /${CHAR}}"
|
LINE="${LINE// /${CHAR}}"
|
||||||
printf "${hr_color}${LINE:0:${hr_col_count}}${hr_reset}"
|
printf "◀${hr_color}${LINE:0:${hr_col_count}}${hr_reset}▶"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Passes param and calls hr()
|
# Passes param and calls hr()
|
||||||
|
Loading…
Reference in New Issue
Block a user