.zsh/functions/prompt

This commit is contained in:
Tom Willemsen 2012-01-11 21:35:40 +01:00
parent dfa924fcd8
commit 89c865eb47

View file

@ -4,6 +4,8 @@ local pac_cnt=$(get_cnt updates)
local aur_cnt=$(get_cnt aur) local aur_cnt=$(get_cnt aur)
local hostname=$(hostname | cut -d . -f 1) local hostname=$(hostname | cut -d . -f 1)
line
if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then
printf "%s%d%s/%s%d%s:" \ printf "%s%d%s/%s%d%s:" \
"%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \ "%{${fg[cyan]}%}" $pac_cnt "%{${fg[default]}%}" \