homebrew-core/Formula/z.rb
Joseph C ce29ce7548 z 1.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-28 08:40:37 -07:00

28 lines
616 B
Ruby

require 'formula'
class Z < Formula
homepage 'https://github.com/rupa/z'
url 'https://github.com/rupa/z/tarball/v1.2'
sha1 '05b3d8dc761eb660f1d0d56258463cc45b2e097f'
head 'https://github.com/rupa/z.git'
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