6/29/2018 - 6:58 PM

Install Autoenv

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:// $HOME/.autoenv
    echo '~~ cloning autoenv completed ~~'
    echo '~~ persisting autoenv to the .profile ~~'
    echo 'source ~/.autoenv/' >> $HOME/.profile
    echo '~~ finshed installing autoenv ~~'