The installation has two parts.
- Install the package or binary, which is presented in this document
- hook into your shell.
From system packages
direnv is packaged for a variety of systems:
- Arch Linux
- Gentoo go-overlay
- NetBSD pkgsrc-wip
- macOS Homebrew
- GNU Guix
From binary builds
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
Compile from source
See the Development page.