From 53e41fb461bb71fb15e1f3cc0df3fb7760c590dc Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 22 Nov 2022 22:06:59 +0100 Subject: sync-mail: macos --- sync-mail | 5 +++-- 1 file 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 -- cgit v1.2.3