Added email checking and CLI notification
If there are more than 5 emails that are unread, an indicator will show up.
This commit is contained in:
parent
96fe0c41cf
commit
40b9b7031f
4 changed files with 27 additions and 5 deletions
|
@ -14,14 +14,21 @@ function server()
|
|||
fi
|
||||
}
|
||||
|
||||
function unread_count()
|
||||
function unread_email()
|
||||
{
|
||||
unread=( $(</tmp/UNREAD_GMAIL) )
|
||||
|
||||
if [[ unread -ge 5 ]];
|
||||
then
|
||||
echo 📩
|
||||
fi
|
||||
}
|
||||
|
||||
USER="$(username)$(server)"
|
||||
PROMPT='
|
||||
%{$USER%}%{$fg[blue]%}%~ $(git_prompt_info)
|
||||
%{$FG[244]%}%# %{$reset_color%}'
|
||||
RPROMPT='$(unread_email)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||
|
|
|
@ -192,8 +192,5 @@ fi
|
|||
# _update_brew_update
|
||||
# fi
|
||||
|
||||
### Added by the Heroku Toolbelt
|
||||
# Added by the Heroku Toolbelt
|
||||
export PATH="/usr/local/heroku/bin:$PATH"
|
||||
|
||||
echo ''
|
||||
fortune
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue