2012-01-11 04:05:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Autojump < Formula
|
2012-11-01 09:41:44 +00:00
|
|
|
homepage 'https://github.com/joelthelion/autojump#name'
|
2013-01-10 17:29:51 +00:00
|
|
|
url 'https://github.com/joelthelion/autojump/archive/release-v21.3.0.tar.gz'
|
|
|
|
sha1 'fb9db92fca7c760c94e27f200dc0b2e1773ca150'
|
2012-01-11 04:05:04 +00:00
|
|
|
|
|
|
|
head 'https://github.com/joelthelion/autojump.git'
|
|
|
|
|
|
|
|
def install
|
2012-11-01 09:41:44 +00:00
|
|
|
inreplace 'bin/autojump.sh', ' /etc/profile.d/', " #{prefix}/etc/"
|
2012-01-11 04:05:04 +00:00
|
|
|
|
2012-11-01 09:41:44 +00:00
|
|
|
bin.install 'bin/autojump'
|
|
|
|
man1.install 'docs/autojump.1'
|
|
|
|
(prefix+'etc').install 'bin/autojump.sh', 'bin/autojump.bash', 'bin/autojump.zsh'
|
|
|
|
(share+'zsh/site-functions').install 'bin/_j'
|
2012-01-11 04:05:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2012-11-01 09:41:44 +00:00
|
|
|
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
|
|
|
|
to source the file to update your current session):
|
|
|
|
|
2012-11-22 18:10:52 +00:00
|
|
|
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
|
2012-01-11 04:05:04 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|