Add comment about the 2> >(grep -Ev 'ApplePersistence=(NO|YES)' >&2)

This commit is contained in:
Paul 2025-06-03 18:11:16 +02:00
parent ad83428fc7
commit 0fd629323b
No known key found for this signature in database
GPG Key ID: 6A5AE3C3DF890E0F

View File

@ -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"