summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsync-mail5
1 files changed, 3 insertions, 2 deletions
diff --git a/sync-mail b/sync-mail
index 222065d..8d7451d 100755
--- a/sync-mail
+++ b/sync-mail
@@ -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