homebrew-core/Formula/autojump.rb

27 lines
733 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Autojump < Formula
url 'https://github.com/downloads/joelthelion/autojump/autojump_v16.tar.gz'
homepage 'https://github.com/joelthelion/autojump/wiki'
md5 '6d670dbf5d2c2e732b49dc246686973a'
2011-05-27 05:02:55 +00:00
head 'https://github.com/joelthelion/autojump.git'
def install
bin.install "autojump"
man1.install "autojump.1"
2010-11-07 19:30:15 +00:00
inreplace "autojump.sh", '/etc/profile.d/', (prefix+'etc/')
(prefix+'etc').install "autojump.sh" => "autojump"
2010-11-07 19:30:15 +00:00
(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