summaryrefslogtreecommitdiffstats
path: root/.zsh
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-01-11 22:17:13 +0100
committerGravatar Tom Willemsen2012-01-11 22:17:13 +0100
commit66511ad4644bc0bdd5e234ec5d90d90de8ba545e (patch)
tree20c3702ed7f7ff55c31cb4900609a15e93864e4c /.zsh
parentecf2e02bb5f1d9ba66a4e829bc39a512c9f07c0f (diff)
downloaddotfiles-66511ad4644bc0bdd5e234ec5d90d90de8ba545e.tar.gz
dotfiles-66511ad4644bc0bdd5e234ec5d90d90de8ba545e.zip
.zsh/functions/line
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/functions/line9
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"