diff options
author | Matt Singleton <matt@xcolour.net> | 2014-02-10 16:53:49 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2014-02-10 16:53:49 -0500 |
commit | d317c278854dcb6e60b4a07d3de04ba034c3b467 (patch) | |
tree | 0b4c3e7312245cb10ebf8312c563150904d068bb /zsh | |
parent | 5d7a8745a2a486c712c89c4893425342c429b111 (diff) |
colorful horizontal separator
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/behavior.zsh | 12 |
1 files changed, 12 insertions, 0 deletions
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" +} |