2010-09-27 12:32:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Autojump < Formula
|
2011-09-11 16:19:41 +00:00
|
|
|
url 'https://github.com/downloads/joelthelion/autojump/autojump_v17.tar.gz'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/joelthelion/autojump/wiki'
|
2011-09-11 16:19:41 +00:00
|
|
|
md5 '38f9cf32fc6442d2db82a64086811a2b'
|
2011-04-17 18:06:51 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/joelthelion/autojump.git'
|
2010-09-27 12:32:36 +00:00
|
|
|
|
|
|
|
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/')
|
2010-09-27 12:32:36 +00:00
|
|
|
(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
|
2010-09-27 12:32:36 +00:00
|
|
|
end
|
|
|
|
end
|