Small fixes

This commit is contained in:
crater2150 2023-03-08 17:36:58 +01:00
parent 0cae13e4c1
commit 986347debf
2 changed files with 2 additions and 0 deletions

View file

@ -39,6 +39,7 @@ xupdate() {
fi fi
else else
xbps-install -SA "$@" xbps-install -SA "$@"
xcheckupdates
fi fi
} }

1
zshrc
View file

@ -105,6 +105,7 @@ fi
if exists mail; then if exists mail; then
_prompt_cron_mails() { _prompt_cron_mails() {
[[ ! -e $MAIL ]] && return
local newmails=$(mail -Hf $MAIL | grep -c '^.N') local newmails=$(mail -Hf $MAIL | grep -c '^.N')
[[ $newmails -gt 0 ]] && echo "Cron Notifications: $newmails" [[ $newmails -gt 0 ]] && echo "Cron Notifications: $newmails"
} }