Add mails from cron to prompt
This commit is contained in:
parent
d86ef1c7b9
commit
2f45a347ac
3 changed files with 11 additions and 4 deletions
12
zshrc
12
zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue