e53edd712f28170a0843ce1d2a61efe335484ad4

Author
David LJ <mail@davidlj95.com>
Committer
GitHub <noreply@github.com>
Date

Message

fix(bgnotify): use terminal-notifier args properly (#12467)

Diff

 1diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
 2index 0e3f2c640d5723532ed339974de043507a5682d3..7de6f9a91adece7e5ba754d48e58bdbb0752f563 100644
 3--- a/plugins/bgnotify/bgnotify.plugin.zsh
 4+++ b/plugins/bgnotify/bgnotify.plugin.zsh
 5@@ -117,7 +117,7 @@ function bgnotify {
 6   local icon="$3"
 7   if (( ${+commands[terminal-notifier]} )); then # macOS
 8     local term_id=$(bgnotify_programid)
 9-    terminal-notifier -message "$message" -title "$title" ${=icon:+-appIcon "$icon"} ${=term_id:+-activate "$term_id" -sender "$term_id"} &>/dev/null
10+    terminal-notifier -message "$message" -title "$title" ${=icon:+-appIcon "$icon"} ${=term_id:+-activate "$term_id"} &>/dev/null
11   elif (( ${+commands[growlnotify]} )); then # macOS growl
12     growlnotify -m "$title" "$message"
13   elif (( ${+commands[notify-send]} )); then