.zsh/functions/prompt

This commit is contained in:
Tom Willemsen 2012-01-11 21:41:04 +01:00
parent eac44bf15a
commit 39968ad116

View file

@ -4,7 +4,7 @@ local pac_cnt=$(get_cnt updates)
local aur_cnt=$(get_cnt aur)
local hostname=$(hostname | cut -d . -f 1)
line $hostname "$(date)"
line $hostname "$(date +%Y%m%d%H.%M)"
if [ $pac_cnt -gt 0 -o $aur_cnt -gt 0 ]; then
printf "%s%d%s/%s%d%s:" \