Skip to content

Instantly share code, notes, and snippets.

@carhartl
Created November 10, 2016 18:53
Show Gist options
  • Save carhartl/495c498aa1a1ef8a561d2ad53c52b3d6 to your computer and use it in GitHub Desktop.
Save carhartl/495c498aa1a1ef8a561d2ad53c52b3d6 to your computer and use it in GitHub Desktop.
Patched autoenv Homebrew formula
class Autoenv < Formula
desc "Per-project, per-directory shell environments"
homepage "https://github.com/kennethreitz/autoenv"
url "https://github.com/kennethreitz/autoenv/archive/v0.2.1.tar.gz"
sha256 "d10ee4d916a11a664453e60864294fec221c353f8ad798aa0aa6a2d2c5d5b318"
head "https://github.com/kennethreitz/autoenv.git"
bottle :unneeded
devel do
url 'https://github.com/carhartl/autoenv/archive/fix-oldpwd.zip'
sha256 'dccae75b9c26eea51b7686fd256b5ed9f4bff1014880971d5b077fdae5211eb8'
end
def install
prefix.install "activate.sh"
end
def caveats; <<-EOS.undent
To finish the installation, source activate.sh in your shell:
source #{opt_prefix}/activate.sh
EOS
end
end
brew edit autoenv
# User above formula
brew install --devel autoenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment