Add mails from cron to prompt

This commit is contained in:
crater2150 2023-03-02 16:07:52 +01:00
parent d86ef1c7b9
commit 2f45a347ac
3 changed files with 11 additions and 4 deletions

12
zshrc
View file

@ -102,7 +102,11 @@ if [[ -e $HOME/.calendars ]]; then
}
__chromaz_extra_left+=_prompt_todos
fi
# >>> scala-cli completions >>>
fpath=("/home/crater2150/.local/share/scalacli/completions/zsh" $fpath)
compinit
# <<< scala-cli completions <<<
if exists mail; then
_prompt_cron_mails() {
local newmails=$(mail -Hf $MAIL | grep -c '^.N')
[[ $newmails -gt 0 ]] && echo "Cron Notifications: $newmails"
}
__chromaz_extra_left+=_prompt_cron_mails
fi