From f61f98d37d7dc6ba0b07bce50a5231e45f5637d6 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 22 Jan 2018 23:21:08 +0800 Subject: zsh: rule() allow to specify the char --- _zsh/40-functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_zsh') diff --git a/_zsh/40-functions.zsh b/_zsh/40-functions.zsh index 2a15058..99f17de 100644 --- a/_zsh/40-functions.zsh +++ b/_zsh/40-functions.zsh @@ -94,7 +94,7 @@ function trash() { ## Print a horizontal rule function rule() { - printf "%$(tput cols)s\n" | tr ' ' '-' + printf "%$(tput cols)s\n" | tr ' ' "${1:-=}" } -- cgit v1.2.2