From 66511ad4644bc0bdd5e234ec5d90d90de8ba545e Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 11 Jan 2012 22:17:13 +0100 Subject: .zsh/functions/line --- .zsh/functions/line | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '.zsh/functions') 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" -- cgit v1.2.3-54-g00ecf