2011-02-27 23:08:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Z < Formula
|
|
|
|
homepage 'https://github.com/rupa/z'
|
2013-04-30 01:56:35 +00:00
|
|
|
url 'https://github.com/rupa/z/archive/v1.6.tar.gz'
|
|
|
|
sha1 '3efddaddb4f68b76f91e504885bb7bf524730086'
|
2011-02-27 23:08:50 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/rupa/z.git'
|
2011-02-27 23:08:50 +00:00
|
|
|
|
|
|
|
def install
|
2013-01-11 05:55:34 +00:00
|
|
|
(prefix/'etc/profile.d').install 'z.sh'
|
2011-02-27 23:08:50 +00:00
|
|
|
man1.install 'z.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2012-09-01 19:43:37 +00:00
|
|
|
For Bash or Zsh, put something like this in your $HOME/.bashrc or $HOME/.zshrc:
|
2013-01-11 06:34:57 +00:00
|
|
|
. `brew --prefix`/etc/profile.d/z.sh
|
2011-02-27 23:08:50 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|