797e1f9a64c0d2775723bb28c76745b327f86d56

Author
Tim O'Brien <timo@t413.com>
Committer
Tim O'Brien <timo@t413.com>
Date

Message

[plugins/bgnotify] fix for iTerm2 notification clicks

Diff

 1diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
 2index f6dd3886c646af30e0ee2ff52632cf30a44598af..459f5214e62c07d62d65dbd98901ea2c4dc82bcc 100755
 3--- a/plugins/bgnotify/bgnotify.plugin.zsh
 4+++ b/plugins/bgnotify/bgnotify.plugin.zsh
 5@@ -32,7 +32,7 @@ currentWindowId () {
 6 
 7 bgnotify () { ## args: (title, subtitle)
 8   if hash terminal-notifier 2>/dev/null; then #osx
 9-    [[ "$TERM_PROGRAM" == 'iTerm.app' ]] && term_id='com.googlecode.iterm2' ||
10+    [[ "$TERM_PROGRAM" == 'iTerm.app' ]] && term_id='com.googlecode.iterm2';
11     [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]] && term_id='com.apple.terminal';
12     ## now call terminal-notifier, (hopefully with $term_id!)
13     [ -z "$term_id" ] && terminal-notifier -message "$2" -title "$1" >/dev/null ||