.zsh/functions/line
This commit is contained in:
parent
ecf2e02bb5
commit
66511ad464
1 changed files with 4 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue