The installation has two parts.
- Install the package or binary, which is presented in this document
- hook into your shell.
direnv is packaged for a variety of systems:
- Fedora
- Arch Linux
- Debian
- Gentoo Guru
- NetBSD pkgsrc-wip
- NixOS
- macOS Homebrew
- openSUSE
- MacPorts
- Ubuntu
- GNU Guix
- Windows
See also:
To install binary builds you can run this bash installer:
curl -sfL https://direnv.net/install.sh | bash
Binary builds for a variety of architectures are also available for each release.
Fetch the binary, chmod +x direnv
and put it somewhere in your PATH
.
See the Development page.