The installation has two parts. (1) install the package or binary, which is presented in this document and (2) hook into your shell.

From system packages

direnv is packaged for a variety of systems:

See also:

Packaging status

From binary builds

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