homebrew-core/Formula/direnv.rb
Jonas Pfenniger d77c63f2d0 Direnv: Update to 0.1.72
Closes Homebrew/homebrew#7741.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-21 23:03:11 -07:00

34 lines
753 B
Ruby

require 'formula'
class Direnv < Formula
homepage 'https://github.com/zimbatm/direnv'
url 'https://github.com/zimbatm/direnv/tarball/v0.1.72'
md5 '34fecdff4bc6a5cbe4890ad14e5f3438'
head 'https://github.com/zimbatm/direnv.git'
def install
# App and support files live in libexec
libexec.install Dir['libexec/*']
# Symlink into bin
bin.mkpath
ln_s libexec+'direnv', bin+'direnv'
end
def caveats
<<-EOS.undent
One last step.
At the END of your ~/.bashrc or ~/.zshrc, add the following line:
eval `direnv hook $0`
I mean, AFTER rvm, git-prompt and friends :)
Reload your shell, done.
See the wiki for docs and examples:
https://github.com/zimbatm/direnv/wiki/
EOS
end
end