diff options
author | Tom Willemsen | 2012-01-11 21:35:40 +0100 |
---|---|---|
committer | Tom Willemsen | 2012-01-11 21:35:40 +0100 |
commit | 89c865eb479573790bd32052e4420b2e46f77815 (patch) | |
tree | b3f674f92cd8f5e907d800ebcaa649d0572bc378 | |
parent | dfa924fcd846ab46794c6bd06465753be7c9abdc (diff) | |
download | dotfiles-89c865eb479573790bd32052e4420b2e46f77815.tar.gz dotfiles-89c865eb479573790bd32052e4420b2e46f77815.zip |
.zsh/functions/prompt
-rw-r--r-- | .zsh/functions/prompt | 2 |
1 files changed, 2 insertions, 0 deletions
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]}%}" \ |