legacy-dotfiles/.zsh/functions/line

9 lines
133 B
Bash

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