aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorEvan Shelhamer2012-01-10 23:05:04 -0500
committerAdam Vandenberg2012-02-19 11:32:12 -0800
commit84e4f7039d574a6220a0174b03faed8134b81424 (patch)
tree0de1c4ec43eaa5152924ce22fd994fb75771f385 /Library/Formula
parent66d6639c59c9212b40e4bf8ecc4a5522252c92ab (diff)
downloadhomebrew-84e4f7039d574a6220a0174b03faed8134b81424.tar.bz2
autojump 19
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/autojump.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb
new file mode 100644
index 000000000..5ff1450b4
--- /dev/null
+++ b/Library/Formula/autojump.rb
@@ -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