summaryrefslogtreecommitdiffstats
path: root/.zsh/functions
diff options
context:
space:
mode:
Diffstat (limited to '.zsh/functions')
-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"