autojump 19
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
d105a1743e
commit
987e00f084
1 changed files with 28 additions and 0 deletions
28
Formula/autojump.rb
Normal file
28
Formula/autojump.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
require 'formula'
|
||||
|
||||
class Autojump < Formula
|
||||
homepage 'https://github.com/joelthelion/autojump/wiki'
|
||||
url 'https://github.com/downloads/joelthelion/autojump/autojump_v19.tar.gz'
|
||||
md5 '7dd928f0fb5958067c53fa196a091e53'
|
||||
|
||||
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'
|
||||
(prefix+'share/zsh/functions').install '_j'
|
||||
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
|
Loading…
Reference in a new issue