aboutsummaryrefslogtreecommitdiffstats
path: root/_zsh
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-01-22 23:21:08 +0800
committerAaron LI <aly@aaronly.me>2018-01-22 23:21:08 +0800
commitf61f98d37d7dc6ba0b07bce50a5231e45f5637d6 (patch)
tree71524392d0644ef309464d501ade9b4e23a97f3c /_zsh
parentb7022a415d3697214e9bb385ee1ae23e44191548 (diff)
downloaddotfiles-f61f98d37d7dc6ba0b07bce50a5231e45f5637d6.tar.bz2
zsh: rule() allow to specify the char
Diffstat (limited to '_zsh')
-rw-r--r--_zsh/40-functions.zsh2
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:-=}"
}