---
title: Install direnv on Linux | Snap Store
description: Get the latest version of direnv for Linux - direnv -- Unclutter your
  .profile
url: https://snapcraft.io/direnv
---

# direnv

[Null Box (nullboxorg)](https://snapcraft.io/publisher/nullboxorg "View all snaps from Null Box (nullboxorg)")

* [Null Box (nullboxorg)](https://snapcraft.io/publisher/nullboxorg "View all snaps from Null Box (nullboxorg)")
* [Development](https://snapcraft.io/search?categories=development)
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable v2.18.2

Install latest/stable of direnv

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install direnv
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* direnv

---

### License

* MIT

---

### Last updated

* 31 May 2019 - latest/stable
* 31 May 2019 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

### Websites

* [null-box.org](https://null-box.org "https://null-box.org")

---

### Contact

* [i.polyzos@null-box.org](mailto:i.polyzos@null-box.org "mailto:i.polyzos@null-box.org")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/direnv#report-snap-modal)

---

* [Description](https://snapcraft.io/direnv#tab-description)
* [Security](https://snapcraft.io/direnv#tab-security)

#### direnv -- Unclutter your .profile

direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh, fish shell and elvish to load or unload environment variables depending on the current directory. This allows project-specific environment variables without cluttering the ~/.profile file.

Before each prompt, direnv checks for the existence of a ".envrc" file in the current and parent directories. If the file exists (and is authorized), it is loaded into a bash sub-shell and all exported variables are then captured by direnv and then made available to the current shell.

Because direnv is compiled into a single static executable, it is fast enough to be unnoticeable on each prompt. It is also language-agnostic and can be used to build solutions similar to rbenv, pyenv and phpenv.

---

## Install direnv on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/direnv/arch)

[### CentOS](https://snapcraft.io/install/direnv/centos)

[### Debian](https://snapcraft.io/install/direnv/debian)

[### elementary OS](https://snapcraft.io/install/direnv/elementary)

[### Fedora](https://snapcraft.io/install/direnv/fedora)

[### KDE Neon](https://snapcraft.io/install/direnv/kde-neon)

[### Kubuntu](https://snapcraft.io/install/direnv/kubuntu)

[### Manjaro](https://snapcraft.io/install/direnv/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/direnv/pop)

[### openSUSE](https://snapcraft.io/install/direnv/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/direnv/rhel)

[### Ubuntu](https://snapcraft.io/install/direnv/ubuntu)
