AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents