diff options
Diffstat (limited to '.zsh/functions/line')
-rw-r--r-- | .zsh/functions/line | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.zsh/functions/line b/.zsh/functions/line new file mode 100644 index 0000000..ed70b29 --- /dev/null +++ b/.zsh/functions/line @@ -0,0 +1,9 @@ +# -*- mode: shell-script -*- + +let width=$(expr $COLUMNS - ${#1} - 2) + +for i in {1..$width}; do + echo -n \\x2d +done + +echo -n " $1" |