aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2014-02-10 16:53:49 -0500
committerMatt Singleton <matt@xcolour.net>2014-02-10 16:53:49 -0500
commitd317c278854dcb6e60b4a07d3de04ba034c3b467 (patch)
tree0b4c3e7312245cb10ebf8312c563150904d068bb
parent5d7a8745a2a486c712c89c4893425342c429b111 (diff)
colorful horizontal separator
-rw-r--r--zsh/behavior.zsh12
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"
+}