diff options
-rwxr-xr-x | sync-mail | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/bin/zsh -x if [[ $(uname) == "Darwin" ]]; then - export PATH=/Users/$(whoami)/.local/bin:$PATH + export PATH=/opt/local/bin:$PATH fi if [[ $(uname) == "Linux" ]]; then export PATH=/home/$(whoami)/.local/bin:$PATH @@ -31,6 +31,7 @@ then /usr/bin/notify-send "You got mail ($new)." fi if [[ $(uname) == "Darwin" ]]; then - osascript -e "display notification \"$new new mails.\" with title \"You got mail.\"" + #osascript -e "display notification \"$new new mails.\" with title \"You got mail.\"" + /Users/pks/.local/bin/terminal-notifier -title "You have ✉" -message "$new new mails" -sender ID sync-mail -appIcon /System/Applications/Mail.app/Contents/Resources/ApplicationIcon.icns fi fi |