Command-line tool
direnv
brew/direnv
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Load/unload environment variables based on $PWD powershell shell bash 扩展 shell-extension environment 环境 环境变量 zsh fish tcsh environment-variable
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id direnv.direnv -e scoop install direnv
macOS
brew install direnv
Linux
brew install 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 .
Related command-line tools
- oh-my-posh
Prompt theme engine for any shell developer-tools cli git command-prompt powershell terminal wsl shell console bash… - powershell
Command-line shell and scripting language cross-platform open-source powershell shell dotnet command-line pwsh - envv
Shell-independent handling of environment variables - bash
Bourne-Again SHell, a UNIX command interpreter - PowerShell Preview
Shell and scripting language designed especially for system administration. This command refers to PowerShell version… - xonsh
Python-powered, cross-platform, Unix-gazing shell language and command prompt python requirescmd xonfig - shell-use
shell-use (Windows package; no description in the winget index) llm automation cli tui powershell terminal bash… - carapace
Multi-shell multi-command argument completer powershell bash nushell zsh xonsh fish tcsh elvish oil ion xontrib carapace
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents