summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2022-11-22 22:06:59 +0100
committerpks <pks@pks.rocks>2022-11-22 22:06:59 +0100
commit53e41fb461bb71fb15e1f3cc0df3fb7760c590dc (patch)
tree1a5d27582e719a35e274d2f43f41d9485ad09c71
parent388486b463a2f596a20a2fe26d0160650be08f64 (diff)
sync-mail: macos
-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