diff options
author | Tim O'Brien <timo@t413.com> | 2014-11-06 10:32:29 -0800 |
---|---|---|
committer | Tim O'Brien <timo@t413.com> | 2014-11-06 10:35:07 -0800 |
commit | adafe271f02ab767c29f80f5657f448d593cdaf6 (patch) | |
tree | 2cb1c5d1d013937a39d4af262384be0a3c0ae42d /plugins/bgnotify | |
parent | 0b0cc2cdea1e3b3e4af78d8d4a9992be468031eb (diff) | |
download | zsh-adafe271f02ab767c29f80f5657f448d593cdaf6.tar.gz zsh-adafe271f02ab767c29f80f5657f448d593cdaf6.tar.bz2 zsh-adafe271f02ab767c29f80f5657f448d593cdaf6.zip |
add cygwin windows support with notifu, add to readme
Diffstat (limited to 'plugins/bgnotify')
-rw-r--r-- | plugins/bgnotify/README.md | 2 | ||||
-rwxr-xr-x | plugins/bgnotify/bgnotify.plugin.zsh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/bgnotify/README.md b/plugins/bgnotify/README.md index bf4b1fd09..68fa7529e 100644 --- a/plugins/bgnotify/README.md +++ b/plugins/bgnotify/README.md @@ -13,6 +13,7 @@ Just add bgnotify to your plugins list in your `.zshrc` - On OS X you'll need [terminal-notifer](https://github.com/alloy/terminal-notifier) * `brew install terminal-notifier` (or `gem install terminal-notifier`) - On ubuntu you're already all set! +- On windows you can use [notifu](http://www.paralint.com/projects/notifu/) or the Cygwin Ports libnotify package ## Configuration @@ -36,4 +37,3 @@ function bgnotify_formatted { plugins=(git bgnotify) ## add to plugins list source $ZSH/oh-my-zsh.sh ## existing source call ~~~ - diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh index b5fb76f7e..42129bd06 100755 --- a/plugins/bgnotify/bgnotify.plugin.zsh +++ b/plugins/bgnotify/bgnotify.plugin.zsh @@ -35,6 +35,8 @@ bgnotify () { terminal-notifier -message $2 -title $1 elif hash growlnotify 2>/dev/null; then #osx growl growlnotify -m $1 $2 + elif hash notifu 2>/dev/null; then #cygwyn support! + notifu /m "$2" /p "$1" fi } |