2012-01-11 04:05:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Autojump < Formula
|
|
|
|
homepage 'https://github.com/joelthelion/autojump/wiki'
|
2012-05-01 20:19:21 +00:00
|
|
|
url 'https://github.com/downloads/joelthelion/autojump/autojump_v20.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '7de157feb90dc22d5959914fa531844c68d5ba7b'
|
2012-01-11 04:05:04 +00:00
|
|
|
|
|
|
|
head 'https://github.com/joelthelion/autojump.git'
|
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'autojump.sh', '/etc/profile.d/', "#{prefix}/etc/"
|
|
|
|
|
|
|
|
bin.install 'autojump'
|
|
|
|
man1.install 'autojump.1'
|
|
|
|
(prefix+'etc').install 'autojump.sh' => 'autojump'
|
|
|
|
(prefix+'etc').install 'autojump.bash', 'autojump.zsh'
|
2012-04-29 07:54:35 +00:00
|
|
|
(share+'zsh/site-functions').install '_j'
|
2012-01-11 04:05:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Add the following lines to your ~/.bash_profile or ~/.zshrc file (and
|
|
|
|
remember to source the file to update your current session):
|
|
|
|
if [ -f `brew --prefix`/etc/autojump ]; then
|
|
|
|
. `brew --prefix`/etc/autojump
|
|
|
|
fi
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|