From 89c865eb479573790bd32052e4420b2e46f77815 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Wed, 11 Jan 2012 21:35:40 +0100 Subject: [PATCH] .zsh/functions/prompt --- .zsh/functions/prompt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zsh/functions/prompt b/.zsh/functions/prompt index f8cc15f..4a1a90c 100644 --- a/.zsh/functions/prompt +++ b/.zsh/functions/prompt @@ -4,6 +4,8 @@ local pac_cnt=$(get_cnt updates) local aur_cnt=$(get_cnt aur) local hostname=$(hostname | cut -d . -f 1) +line + if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then printf "%s%d%s/%s%d%s:" \ "%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \