.zsh/functions/line

This commit is contained in:
Tom Willemsen 2012-01-11 22:17:13 +01:00
parent ecf2e02bb5
commit 66511ad464

View file

@ -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"