From 986347debf7b81fa2f1640b2ee9c08602a8731b6 Mon Sep 17 00:00:00 2001 From: crater2150 <crater@qwertyuiop.de> Date: Wed, 8 Mar 2023 17:36:58 +0100 Subject: [PATCH] Small fixes --- aliases/void | 1 + zshrc | 1 + 2 files changed, 2 insertions(+) diff --git a/aliases/void b/aliases/void index 52e91d0..30cecf5 100644 --- a/aliases/void +++ b/aliases/void @@ -39,6 +39,7 @@ xupdate() { fi else xbps-install -SA "$@" + xcheckupdates fi } diff --git a/zshrc b/zshrc index 5c6d2f2..f091513 100644 --- a/zshrc +++ b/zshrc @@ -105,6 +105,7 @@ fi if exists mail; then _prompt_cron_mails() { + [[ ! -e $MAIL ]] && return local newmails=$(mail -Hf $MAIL | grep -c '^.N') [[ $newmails -gt 0 ]] && echo "Cron Notifications: $newmails" }