homebrew-core/Formula/autojump.rb
Kushal Pisavadia 422df74c7a autojump: fix md5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-21 11:44:49 -07:00

26 lines
733 B
Ruby

require 'formula'
class Autojump < Formula
url 'https://github.com/downloads/joelthelion/autojump/autojump_v16.tar.gz'
homepage 'https://github.com/joelthelion/autojump/wiki'
md5 '6d670dbf5d2c2e732b49dc246686973a'
head 'https://github.com/joelthelion/autojump.git'
def install
bin.install "autojump"
man1.install "autojump.1"
inreplace "autojump.sh", '/etc/profile.d/', (prefix+'etc/')
(prefix+'etc').install "autojump.sh" => "autojump"
(prefix+'etc').install ["autojump.bash", "autojump.zsh"]
end
def caveats; <<-EOS.undent
Add the following lines to your ~/.bash_profile file:
if [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
fi
EOS
end
end