blob: cd092e0df0642a4c2d0054985ee5aeb39702d918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'formula'
class Autojump < Formula
url 'https://github.com/downloads/joelthelion/autojump/autojump_v15.tar.gz'
homepage 'https://github.com/joelthelion/autojump/wiki'
md5 'a4a36d774ccb27cbcc9dcc6e2528632b'
head 'git://github.com/joelthelion/autojump.git'
def install
bin.install "autojump"
man1.install "autojump.1"
inreplace "autojump.sh", '/etc/profile.d/', (prefix+'etc/')
(prefix+'etc').install "autojump.sh" => "autojump"
(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
end
end
|