Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Add .envrc back #73

Closed
josh opened this issue Apr 10, 2011 · 7 comments
Closed

Add .envrc back #73

josh opened this issue Apr 10, 2011 · 7 comments
Assignees
Labels
Milestone

Comments

@josh
Copy link
Contributor

josh commented Apr 10, 2011

Sam removed this on me.

@ghost ghost assigned josh Apr 10, 2011
@sstephenson
Copy link
Contributor

Related: let's figure out better, more intention-revealing names for .powenv and .powrc.

@josh josh closed this as completed Apr 12, 2011
@paracycle
Copy link

Wow. I didn't realize that Pow was actually trying to load an .envrc file. This conflicts with direnv which is also using .envrc.

direnv lets you to use custom commands in the .envrc file and it causes Pow to not load.

Is it possible to get rid of .envrc loading completely?

@whitehat101
Copy link

I just edited ~/Library/Application Support/Pow/Versions/0.4.1/lib/rack_application.js to stop pow from trying to load .envrc.

direnv loads .envrc with non-standard shell functions, pow sees these direnv features as errors and crashes and burns.

@mindreframer
Copy link

+1 for removing .envrc

@rsutphin
Copy link

Another workaround is to wrap the contents of your .envrc so that only direnv will see them:

if [ "$(type -t direnv_load)" = 'function' ]; then
  # Whatever you want only direnv to execute
fi

@nsarno
Copy link

nsarno commented Jul 20, 2014

+1 for @paracycle and removing .envrc

Especially as it's pretty common to have direnv configured to work with things like spring

In the meantime, I'm using the same workaround as @rsutphin and it works well.

@flybayer
Copy link

Also having the direnv issue. Thanks for the workaround @rsutphin!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants