adafe271f02ab767c29f80f5657f448d593cdaf6
- Author
- Tim O'Brien <timo@t413.com>
- Committer
- Tim O'Brien <timo@t413.com>
- Date
Message
add cygwin windows support with notifu, add to readme
Diff
1diff --git a/plugins/bgnotify/README.md b/plugins/bgnotify/README.md
2index bf4b1fd09d7c7d268b35aeac1856d8ed5edac880..68fa7529eedd55e817adf7628cc467ae2a5760f0 100644
3--- a/plugins/bgnotify/README.md
4+++ b/plugins/bgnotify/README.md
5@@ -13,6 +13,7 @@ Just add bgnotify to your plugins list in your `.zshrc`
6 - On OS X you'll need [terminal-notifer](https://github.com/alloy/terminal-notifier)
7 * `brew install terminal-notifier` (or `gem install terminal-notifier`)
8 - On ubuntu you're already all set!
9+- On windows you can use [notifu](http://www.paralint.com/projects/notifu/) or the Cygwin Ports libnotify package
10
11
12 ## Configuration
13@@ -36,4 +37,3 @@ function bgnotify_formatted {
14 plugins=(git bgnotify) ## add to plugins list
15 source $ZSH/oh-my-zsh.sh ## existing source call
16 ~~~
17-
18diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
19index b5fb76f7ebc610a601c7092b5a3262893e53be69..42129bd066c1e0285d6e5cc9246bae673e044a1c 100755
20--- a/plugins/bgnotify/bgnotify.plugin.zsh
21+++ b/plugins/bgnotify/bgnotify.plugin.zsh
22@@ -35,6 +35,8 @@ bgnotify () {
23 terminal-notifier -message $2 -title $1
24 elif hash growlnotify 2>/dev/null; then #osx growl
25 growlnotify -m $1 $2
26+ elif hash notifu 2>/dev/null; then #cygwyn support!
27+ notifu /m "$2" /p "$1"
28 fi
29 }
30