Autoenv: Directory-based Environments
Magic per-project shell environments. Very pretentious.
If a directory contains a .env file, it will automatically be executed when you cd into it.
This is great for...
- auto-activating virtualenvs
- project-specific environment variables
- making millions
Foreman env files are completely compatible.
You can also nest envs within eachother. How awesome is that!?
Follow the white rabbit:
$ touch project/.env $ echo "echo 'woah'" > project/.env $ cd project woah
Install it easily:
Autoenv overrides cd. If you already do this, invoke autoenv_init within your custom cd after sourcing activate.sh.