{"repo":"hyperupcall/autoenv","free":true,"listed":false,"github":"https://github.com/hyperupcall/autoenv","clone":"git clone https://github.com/hyperupcall/autoenv.git","description":"Directory-based environments.","language":"Shell","stars":6045,"topics":["environment","cd","shell-extension","shell-scripts","bash","zsh","shell","shell-script","terminal"],"license":"MIT","category":"cli-tools","readme_excerpt":"Autoenv: Directory-based Environments Magic per-project shell environments. What is it? If a directory contains an .env file, it will automatically be executed when you cd into it. And, if a directory contains an .env.leave file (and AUTOENV ENABLE LEAVE is a non-empty string), the file will automatically be executed when cd 'ing away from the directory that contains that file. This is great for... - auto-activating virtualenvs - auto-deactivating virtualenvs - project-specific environment variables - making millions You can also nest envs within each other. How awesome is that!? When executing, autoenv, will walk up the directories until the mount point and execute all .env files beginning at the top. Usage Follow the white rabbit: Installation (automated) Install with cURL: Install with wget: If you encounter some variant of a \"curl: command not found\" or \"wget: command not found\" error, please install either cURL or wget (with your package manager) and try again. Installation (manual) When installing manually, you first install autoenv with either Homebrew, npm, or Git. Then, you run a command to ensure autoenv is loaded when you open a terminal (this command depends on your default shell). Installation Method Note that depending on your shell and operating system, you may need to write to .zprofile instead of .zshrc , or write to .bash profile instead of .bashrc (or visa-versa). Using Homebrew Prefer this if you're running macOS. Homebrew must be installed. Click to expan","default_branch":null,"files":null,"tree":[],"storefront":"/r/hyperupcall","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hyperupcall/autoenv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}