mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 10:59:32 +08:00
add cygwin windows support with notifu, add to readme
This commit is contained in:
parent
0b0cc2cdea
commit
adafe271f0
|
@ -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)
|
- On OS X you'll need [terminal-notifer](https://github.com/alloy/terminal-notifier)
|
||||||
* `brew install terminal-notifier` (or `gem install terminal-notifier`)
|
* `brew install terminal-notifier` (or `gem install terminal-notifier`)
|
||||||
- On ubuntu you're already all set!
|
- 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
|
## Configuration
|
||||||
|
@ -36,4 +37,3 @@ function bgnotify_formatted {
|
||||||
plugins=(git bgnotify) ## add to plugins list
|
plugins=(git bgnotify) ## add to plugins list
|
||||||
source $ZSH/oh-my-zsh.sh ## existing source call
|
source $ZSH/oh-my-zsh.sh ## existing source call
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,8 @@ bgnotify () {
|
||||||
terminal-notifier -message $2 -title $1
|
terminal-notifier -message $2 -title $1
|
||||||
elif hash growlnotify 2>/dev/null; then #osx growl
|
elif hash growlnotify 2>/dev/null; then #osx growl
|
||||||
growlnotify -m $1 $2
|
growlnotify -m $1 $2
|
||||||
|
elif hash notifu 2>/dev/null; then #cygwyn support!
|
||||||
|
notifu /m "$2" /p "$1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user