From d317c278854dcb6e60b4a07d3de04ba034c3b467 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Mon, 10 Feb 2014 16:53:49 -0500 Subject: colorful horizontal separator --- zsh/behavior.zsh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'zsh') diff --git a/zsh/behavior.zsh b/zsh/behavior.zsh index 7e7b243..32ab476 100644 --- a/zsh/behavior.zsh +++ b/zsh/behavior.zsh @@ -40,3 +40,15 @@ if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then export WORKON_HOME=~/.virtualenv/envs source /usr/local/bin/virtualenvwrapper_lazy.sh fi + +# +# draw a horizontal separator + +function hr { + printf "$fg[blue]${(l:$COLUMNS::█:)}" + printf "$fg[cyan]${(l:$COLUMNS::█:)}" + printf "$fg[green]${(l:$COLUMNS::█:)}" + printf "$fg[yellow]${(l:$COLUMNS::█:)}" + printf "$fg[red]\e[1m${(l:$COLUMNS::█:)}" + printf "$reset_color" +} -- cgit v1.2.3