8791d7e09ea28335a60db7bd2f5c0d771d7910fc

Author
Paul <pavel.finkelshtein@gmail.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

Update bgnotify.plugin.zsh

Fixed error with spaces in commands

Diff

 1diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
 2index 14ca4c81726ede87c295765e10aeb19f6376d086..b70b42f984540b2d58e9a6720e57234ec5ae21d6 100755
 3--- a/plugins/bgnotify/bgnotify.plugin.zsh
 4+++ b/plugins/bgnotify/bgnotify.plugin.zsh
 5@@ -33,9 +33,9 @@ bgnotify () {
 6   if hash terminal-notifier 2>/dev/null; then #osx
 7     terminal-notifier -message "$2" -title "$1"
 8   elif hash growlnotify 2>/dev/null; then #osx growl
 9-    growlnotify -m $1 $2
10+    growlnotify -m "$1" "$2"
11   elif hash notify-send 2>/dev/null; then #ubuntu!
12-    notify-send $1 $2
13+    notify-send "$1" "$2"
14   elif hash notifu 2>/dev/null; then #cygwyn support!
15     notifu /m "$2" /p "$1"
16   fi