Autoenv is a slick-daddy tool for automatically sources a .env
file every time you cd into a directory.
It's black magic (it overrides the cd function in the shell), but it makes development super easy for managing injection of environment variables.
function install_autoenv {
echo '~~ installing autoenv ~~'
git clone git://github.com/kennethreitz/autoenv.git $HOME/.autoenv
echo '~~ cloning autoenv completed ~~'
echo '~~ persisting autoenv to the .profile ~~'
echo 'source ~/.autoenv/activate.sh' >> $HOME/.profile
echo '~~ finshed installing autoenv ~~'
}