diff options
author | pks <pks@pks.rocks> | 2022-11-22 22:06:59 +0100 |
---|---|---|
committer | pks <pks@pks.rocks> | 2022-11-22 22:06:59 +0100 |
commit | 53e41fb461bb71fb15e1f3cc0df3fb7760c590dc (patch) | |
tree | 1a5d27582e719a35e274d2f43f41d9485ad09c71 /sync-mail | |
parent | 388486b463a2f596a20a2fe26d0160650be08f64 (diff) |
sync-mail: macos
Diffstat (limited to 'sync-mail')
-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 |