legacy-dotfiles/.zsh/functions/line

10 lines
133 B
Text
Raw Normal View History

# -*- mode: shell-script -*-
let width=$(expr $COLUMNS - ${#1} - 2)
for i in {1..$width}; do
echo -n \\x2d
done
echo -n " $1"