diff options
author | Tom Willemsen | 2012-01-11 22:17:13 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-01-11 22:17:13 +0100 |
commit | 66511ad4644bc0bdd5e234ec5d90d90de8ba545e (patch) | |
tree | 20c3702ed7f7ff55c31cb4900609a15e93864e4c /.zsh/functions/line | |
parent | ecf2e02bb5f1d9ba66a4e829bc39a512c9f07c0f (diff) | |
download | dotfiles-66511ad4644bc0bdd5e234ec5d90d90de8ba545e.tar.gz dotfiles-66511ad4644bc0bdd5e234ec5d90d90de8ba545e.zip |
.zsh/functions/line
Diffstat (limited to '.zsh/functions/line')
-rw-r--r-- | .zsh/functions/line | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/.zsh/functions/line b/.zsh/functions/line index ed70b29..58f7aed 100644 --- a/.zsh/functions/line +++ b/.zsh/functions/line @@ -1,9 +1,8 @@ -# -*- mode: shell-script -*- +# -*- mode: shell-script; eval: (git-auto-commit-mode 1) -*- -let width=$(expr $COLUMNS - ${#1} - 2) +let start=$(expr $1 + 1) +let width=$(expr $COLUMNS - $2) -for i in {1..$width}; do +for i in {$start..$width}; do echo -n \\x2d done - -echo -n " $1" |