direnv
Shell extension to load and unload environment variables depending on the current directory. More information: <https://github.com/direnv/direnv>.
Install
- All systems
-
curl cmd.cat/direnv.sh
- Debian
-
apt-get install direnv - Ubuntu
-
apt-get install direnv - Kali Linux
-
apt-get install direnv - Fedora
-
dnf install direnv - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install direnv - OS X
-
brew install direnv - Raspbian
-
apt-get install direnv
Shell extension to load and unload environment variables depending on the current directory. More information: <https://github.com/direnv/direnv>.
-
Grant direnv permission to load the `.envrc` present in the current directory:
direnv allow . -
Revoke the authorization to load the `.envrc` present in the current directory:
direnv deny . -
Edit the `.envrc` file in the default text editor and reload the environment on exit:
direnv edit . -
Trigger a reload of the environment:
direnv reload -
Print some debug status information:
direnv status
© tl;dr; authors and contributors