homebrew-core/Formula/autojump.rb
Evan Shelhamer 9c513139fd autojump: remove reference to _j (removed upstream)
Closes Homebrew/homebrew#17746.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-10 17:47:11 -06:00

25 lines
799 B
Ruby

require 'formula'
class Autojump < Formula
homepage 'https://github.com/joelthelion/autojump#name'
url 'https://github.com/joelthelion/autojump/archive/release-v21.4.2.tar.gz'
sha1 '6876838c570542a8af90b5850d5e17c8d656c50a'
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'
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