Open shakeelmohamed opened 8 years ago
Maybe direnv
is actually better (MIT license & pure bash): https://github.com/direnv/direnv
More discussion on StackOverflow: http://stackoverflow.com/questions/5848832/directory-based-environment-variable-scope-how-to-implement/38482443
https://github.com/alecthomas/ondir
The main issue is
ondir
isn't distributed onbrew
orcask
so it'll have to be built during setup - then gettingstow
to do the right thing is a bit tricky. I'd want to change$SPLUNK_HOME
and$SPLUNK_SOURCE
based on$(pwd)
.