mirror of
https://github.com/philippdieter/zsh-auto-notify.git
synced 2025-10-13 03:58:44 +00:00
Add comment about the 2> >(grep -Ev 'ApplePersistence=(NO|YES)' >&2)
This commit is contained in:
parent
ad83428fc7
commit
0fd629323b
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user