{"repo":"mre/envy","free":true,"listed":false,"github":"https://github.com/mre/envy","clone":"git clone https://github.com/mre/envy.git","description":"💫 Manage environment variables without cluttering your .zshrc.","language":"Shell","stars":88,"topics":["dotenv","direnv","environment","variables","cli"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"envy Sets environment variables when you enter a directory. Works with bash, zsh, and fish. Tested on macOS, Linux, and Windows. Example At work, I have to set some environment variables every time I'm working on certain projects. For example, these can be Google Cloud settings, the Consul host, or Docker configs. It's tedious to set the correct environment variables myself every time. [direnv] automatically loads .env files, but I don't want to clutter my system with .env files. Also, I need the same environment variables in a few unrelated projects, and I don't want to keep the .env files in sync. Thus, the idea for envy was born. It uses a config file that defines what environment variables to set for each folder. Installation Add the following line to the end of your /.zshrc file: For bash, use envy hook bash instead and add it to your /.bashrc file. For fish, use envy hook fish instead and add it to your /.config/fish/config.fish file. Once you open a new shell, envy will start matching directories and set the specified environment variables from the config file. Usage Run envy edit to open the config file. (On macOS, this file is located at /Users/ /Library/Application Support/Envy/Config.toml .) Define the list of regular expressions and the settings. The first regular expression that matches a path wins. The moment you save the file, the current terminal will automatically pick up the new settings; no need to reload or open a new terminal. :v: direnv compatibility env","default_branch":null,"files":null,"tree":[],"storefront":"/r/mre","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mre/envy/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."}