Skip to content

Instantly share code, notes, and snippets.

@zakgrant
Created August 20, 2013 08:04
Show Gist options
  • Save zakgrant/6278480 to your computer and use it in GitHub Desktop.
Save zakgrant/6278480 to your computer and use it in GitHub Desktop.
Modified brew formula for jenv
require 'formula'
class Jenv < Formula
homepage 'https://github.com/gcuisinier/jenv'
url 'https://github.com/gcuisinier/jenv/archive/0.1.1.tar.gz'
sha1 '5885dd46658d92cf756160484f01936a1bdd77ce'
def install
libexec.install Dir['*']
bin.write_exec_script libexec/'bin/jenv'
end
def caveats; <<-EOS.undent
To enable shims and autocompletion add to your profile:
if which jenv > /dev/null; then eval "$(jenv init -)"; fi
To use Homebrew's directories rather than ~/.jenv add to your profile:
export JENV_ROOT=#{opt_prefix}
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment