From c5f3099cbbee28dc2ac8b125987af8d30a3db63a Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Fri, 12 Jan 2018 15:58:37 +0100 Subject: [PATCH] notify: A wrapper for marzocchi/zsh-notify plugin --- cmds/plg-zsh-notify | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 cmds/plg-zsh-notify diff --git a/cmds/plg-zsh-notify b/cmds/plg-zsh-notify new file mode 100755 index 0000000..d7eb67b --- /dev/null +++ b/cmds/plg-zsh-notify @@ -0,0 +1,11 @@ +#!/usr/bin/env zsh + +# For use with marzocchi/zsh-notify, by setting following zstyle in zshrc: +# zstyle ':notify:*' notifier /path/to/zconvey/cmds/plg-zsh-notify + +typeset -g BINDIR=${0:h} + +local tpe="$1" +read -t1 -r msg + +$BINDIR/zc-bg-notify -q "$tpe - $msg"