homebrew-core/Formula/autojump.rb

27 lines
835 B
Ruby
Raw Normal View History

require 'formula'
class Autojump < Formula
homepage 'https://github.com/joelthelion/autojump#name'
url 'https://github.com/joelthelion/autojump/archive/release-v21.6.8.tar.gz'
sha1 '861d41b63f0d6a93b7056424bb2a0e0efc74e70b'
head 'https://github.com/joelthelion/autojump.git'
def install
inreplace 'bin/autojump.sh', ' /etc/profile.d/', " #{prefix}/etc/"
bin.install 'bin/autojump'
man1.install 'docs/autojump.1'
(prefix+'etc').install 'bin/autojump.sh', 'bin/autojump.bash', 'bin/autojump.zsh'
2013-05-03 18:09:00 +00:00
zsh_completion.install 'bin/_j'
end
def caveats; <<-EOS.undent
Add the following line to your ~/.bash_profile or ~/.zshrc file (and remember
to source the file to update your current session):
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
EOS
end
end