The installation has two parts.

  1. Install the package or binary, which is presented in this document
  2. hook into your shell.

From system packages

direnv is packaged for a variety of systems:

See also:

Packaging status

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 PATH.

Compile from source

See the Development page.

Next step

hook installation