.zsh/functions/prompt

This commit is contained in:
Tom Willemsen 2012-01-11 21:37:34 +01:00
parent 89c865eb47
commit d1458e88a1

View file

@ -4,7 +4,7 @@ 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 line $hostname $(date)
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:" \