diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index a498938..ce3c90d 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -109,6 +109,8 @@ function _auto_notify_message() { -e 'end run' \ "$body" "$title" \ 2> >(grep -Ev 'ApplePersistence=(NO|YES)' >&2) + # ^ osascript outputs "ApplePersistence=NO" to stderr on every run, which clutters the terminal. + # ^ Filter stderr to remove only this message while preserving any legitimate error messages. else printf "Unknown platform for sending notifications: $platform\n" printf "Please post an issue on gitub.com/MichaelAquilina/zsh-auto-notify/issues/\n"