diff options
author | Aaron LI <aly@aaronly.me> | 2018-01-22 23:21:08 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-01-22 23:21:08 +0800 |
commit | f61f98d37d7dc6ba0b07bce50a5231e45f5637d6 (patch) | |
tree | 71524392d0644ef309464d501ade9b4e23a97f3c /_zsh | |
parent | b7022a415d3697214e9bb385ee1ae23e44191548 (diff) | |
download | dotfiles-f61f98d37d7dc6ba0b07bce50a5231e45f5637d6.tar.bz2 |
zsh: rule() allow to specify the char
Diffstat (limited to '_zsh')
-rw-r--r-- | _zsh/40-functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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:-=}" } |