From 7c4e930ba49f096bde0a2fc6bbc7dd0d0b6b2d6c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 8 Jan 2012 16:59:17 +0100 Subject: ZSH: Move `env' and `line' to separate files --- .zsh/functions/line | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .zsh/functions/line (limited to '.zsh/functions/line') diff --git a/.zsh/functions/line b/.zsh/functions/line new file mode 100644 index 0000000..ed70b29 --- /dev/null +++ b/.zsh/functions/line @@ -0,0 +1,9 @@ +# -*- mode: shell-script -*- + +let width=$(expr $COLUMNS - ${#1} - 2) + +for i in {1..$width}; do + echo -n \\x2d +done + +echo -n " $1" -- cgit v1.3-2-g0d8e