2011-02-27 23:08:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Z < Formula
|
|
|
|
homepage 'https://github.com/rupa/z'
|
2011-09-15 15:59:56 +00:00
|
|
|
url 'https://github.com/rupa/z/tarball/v1.1'
|
|
|
|
md5 '75125fba5be0638dafd2518489d2faf2'
|
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
|
|
|
|
(prefix+'etc/profile.d').install 'z.sh'
|
|
|
|
man1.install 'z.1'
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
For Bash, put something like this in your $HOME/.bashrc:
|
|
|
|
|
|
|
|
. `brew --prefix`/etc/profile.d/z.sh
|
|
|
|
|
|
|
|
For Zsh, put something like this in your $HOME/.zshrc:
|
|
|
|
|
|
|
|
. `brew --prefix`/etc/profile.d/z.sh
|
|
|
|
function precmd () {
|
|
|
|
z --add "$(pwd -P)"
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|