From 32926cdb9a3e3df8bbebc53128fe5d0465deed65 Mon Sep 17 00:00:00 2001 From: Rui Coelho Date: Fri, 21 Oct 2016 11:42:03 +0100 Subject: [PATCH] Integrate zsh-notify --- .gitmodules | 3 +++ modules/zsh-notify/README.md | 21 +++++++++++++++++++++ modules/zsh-notify/external | 1 + modules/zsh-notify/init.zsh | 5 +++++ 4 files changed, 30 insertions(+) create mode 100644 modules/zsh-notify/README.md create mode 160000 modules/zsh-notify/external create mode 100644 modules/zsh-notify/init.zsh diff --git a/.gitmodules b/.gitmodules index b6cc2483..ef82c9ef 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,3 +22,6 @@ [submodule "modules/deer/external"] path = modules/deer/external url = https://github.com/Vifon/deer.git +[submodule "modules/zsh-notify/external"] + path = modules/zsh-notify/external + url = https://github.com/marzocchi/zsh-notify.git diff --git a/modules/zsh-notify/README.md b/modules/zsh-notify/README.md new file mode 100644 index 00000000..ab1d2ff9 --- /dev/null +++ b/modules/zsh-notify/README.md @@ -0,0 +1,21 @@ +zsh-notify +==== + +[zsh-notidy][1] is a plugin for the Z shell that posts desktop notifications when a command terminates with a non-zero exit status or when it took more than 30 seconds to complete, if the terminal application is in the background (or the terminal tab is inactive). + +Install +------- + +When using the default notifier notifications are posted using [terminal-notifier.app][2] on Mac OS X and notify-send on other systems. + +Authors +------- + +*The authors of this module should be contacted via the [issue tracker][3].* + + - [Rui Coelho](https://github.com/rjcoelho) + - [Sorin Ionescu](https://github.com/sorin-ionescu) + +[1]: https://github.com/marzocchi/zsh-notify +[2]: https://github.com/alloy/terminal-notifier +[3]: https://github.com/sorin-ionescu/prezto/issues diff --git a/modules/zsh-notify/external b/modules/zsh-notify/external new file mode 160000 index 00000000..1b0ba73a --- /dev/null +++ b/modules/zsh-notify/external @@ -0,0 +1 @@ +Subproject commit 1b0ba73aa472672239f431245974ea408ed07921 diff --git a/modules/zsh-notify/init.zsh b/modules/zsh-notify/init.zsh new file mode 100644 index 00000000..646b2213 --- /dev/null +++ b/modules/zsh-notify/init.zsh @@ -0,0 +1,5 @@ +# +# Load zsh-notify Module +# +source "${0:h}/external/notify.plugin.zsh" +