Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wilmoore/1cebe3c57e2fde2aa7d6 to your computer and use it in GitHub Desktop.
Save wilmoore/1cebe3c57e2fde2aa7d6 to your computer and use it in GitHub Desktop.
require 'formula'
class ZshNotify < Formula
homepage 'https://github.com/marzocchi/zsh-notify'
head 'https://github.com/marzocchi/zsh-notify.git'
depends_on 'terminal-notifier'
def install
prefix.install Dir['*']
end
def caveats; <<-EOS.undent
For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:
export SYS_NOTIFIER=$(brew --prefix terminal-notifier)/bin/terminal-notifier
source $(brew --prefix zsh-notify)/notify.plugin.zsh
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment