aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@xcolour.net>2014-02-10 21:33:27 -0500
committerMatt Singleton <matt@xcolour.net>2014-02-10 21:33:27 -0500
commit4a6cd8a5a7b91e0529671d75f6ec8e36c9e7240d (patch)
tree6b3bae92b5cc1dea9a67dbe967aeea88c0099d05
parentd317c278854dcb6e60b4a07d3de04ba034c3b467 (diff)
proper linebrakes in 'hr' function
-rw-r--r--zsh/behavior.zsh11
1 files changed, 5 insertions, 6 deletions
diff --git a/zsh/behavior.zsh b/zsh/behavior.zsh
index 32ab476..1bff8ad 100644
--- a/zsh/behavior.zsh
+++ b/zsh/behavior.zsh
@@ -45,10 +45,9 @@ 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"
+ printf "$fg[blue]${(l:$COLUMNS::█:)}\n"
+ printf "$fg[cyan]${(l:$COLUMNS::█:)}\n"
+ printf "$fg[green]${(l:$COLUMNS::█:)}\n"
+ printf "$fg[yellow]${(l:$COLUMNS::█:)}\n"
+ printf "$fg[red]\e[1m${(l:$COLUMNS::█:)}$reset_color\n"
}