autoenv

Automatically execute shell environments when entering project directories

brewmacoslinux
Try with needOr install directly
Source

About

Per-project, per-directory shell environments

Commands

autoenv

Examples

Initialize autoenv in your shell configuration$ echo 'source $(brew --prefix)/opt/autoenv/activate.sh' >> ~/.zshrc
Create a .env file in a project directory to auto-execute on cd$ echo 'export PROJECT_ENV=development' > /path/to/project/.env
Approve execution of .env file in a directory$ cd /path/to/project && autoenv_approve