direnv

direnv 2.38.2

Shell extension to manage environment variables per current directory.

  • By Jonas Chevalier
  • Open Source
  • Updated Oct 10, 2026
Download for Windows

About direnv

An extension for to augment existing shells with a new feature that can load and unload environment variables depending on the current directory.

What's new in 2.38.2

  • fix(zsh): load the .envrc in a new shell and on cd from shell functions again (#1633, #1634)
  • fix(fish): stop completions from breaking after the first prompt (#1635, #1636)
  • fix(pixi): require_allowed for the manifest file as well (#1632)

Full release notes »

Technical details

PublisherJonas Chevalier
Version2.38.2
Release date2026-10-10
LicenseMIT
Installer typeportable
Architecturex86, x64, arm64
Package IDdirenv.direnv

Links & install command

Install direnv from the command line with Windows Package Manager (winget):

winget install --id=direnv.direnv -e

bashenvironmentenvironment-variablefishgit-bashpowershellshellshell-extensiontcshzsh

Older versions

  • 2.38.1
  • 2.37.1
  • 2.37.0
  • 2.36.0
  • 2.35.0
  • 2.34.0
  • 2.33.0
  • 2.32.3
  • 2.32.2