envrc VS direnv

Compare envrc vs direnv and see what are their differences.

envrc

Emacs support for direnv which operates buffer-locally (by purcell)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
envrc direnv
18 157
325 11,697
- 1.8%
6.4 8.7
11 days ago 10 days ago
Emacs Lisp Go
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

envrc

Posts with mentions or reviews of envrc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-09.
  • Emacs Advent Calendar 9: devdocs, code-cells, dREPL, etc.
    17 projects | /r/emacs | 9 Dec 2023
    buffer-env: A pure-Elisp version of the direnv utility. Useful to make Emacs aware of Python virtualenvs (which, judging by the questions posted here, is unfortunately still a complication for a lot of people). Similar to (and inspired by) envrc, but doesn't require the direnv program.
  • Nix Survival Mode: macOS upgrades won't break Nix anymore
    12 projects | news.ycombinator.com | 25 Oct 2023
    Yes, most Nix users employ https://direnv.net or the equivalent for your IDE of choice. Emacs for instance has https://github.com/purcell/envrc which set per-buffer variables.
  • Beginner question: how do I set up virtual environments in my Python buffer?
    3 projects | /r/emacs | 22 Apr 2023
    Also take a look at the envrc package. I think it handles multiple projects better.
  • How do YOU use your PKMS?
    5 projects | /r/PKMS | 21 Apr 2023
    I further make my software projects so that when I click a link I go into an environment pre-loaded with their dependencies so dropping in/out of projects is always frictionless. I do this with the reproducibility guarantees of nix, along with glue like nix-direnv and envrc-mode to direnv.
  • Minimal approach for python devel environment with flake
    4 projects | /r/NixOS | 4 Feb 2023
    In conjunction with installing direnv on your favorite text editor, it's a very hassle free experience. Everything happens automatically. If you use Emacs, i higly recommend envrc.el
  • Nix and envrc
    3 projects | /r/emacs | 3 Feb 2023
    Direnv is installed using the nix-direnv installation instructions under "Via configuration.nix in NixOS". I read some recommendations that envrc.el is a better alternative then direnv.el, and after some testing I have to agree. (envrc-global-mode) is enabled in my config. This works perfectly with a normal emacs instance.
  • Emacs + emacs-direnv + Nix + vterm does not just work
    1 project | /r/emacs | 27 Dec 2022
    I don't use flake.nix, only shell.nix, though check if the envrc package works any better for you. https://github.com/purcell/envrc
  • Wrapping gcc with libraries
    2 projects | /r/NixOS | 4 Dec 2022
    As an alternative to emacs-direnv, I’d recommend the “envrc” package.
  • Eglot appreciation post
    3 projects | /r/emacs | 8 Jun 2022
    btw, my main issue regarding tramp was the fact that I didn't have my environment generated by direnv, via the https://github.com/purcell/envrc package. I use direnv almost exclusively to activate my nix-shell, so I can access the exact software dependencies required by that directory of a project.
  • Is it possible to let overlay Emacs use locally configured Agda libraries inside nix-shell?
    1 project | /r/NixOS | 19 May 2022
    I'm not familiar with these tools too but I highly recommend to look at https://github.com/purcell/envrc. If you are not familiar with direnv I suggest to try it with nix-shell/flakes before.

direnv

Posts with mentions or reviews of direnv. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-31.

What are some alternatives?

When comparing envrc and direnv you can also consider the following projects:

emacs-direnv - direnv integration for emacs

spaceship-prompt - :rocket::star: Minimalistic, powerful and extremely customizable Zsh prompt

dotemacs

Pipenv - Python Development Workflow for Humans.

lsp-bridge - A blazingly fast LSP client for Emacs

lorri - Your project's nix-env

buffer-env - Buffer-local process environments for Emacs

Home Manager using Nix - Manage a user environment using Nix [maintainer=@rycee]

stack - The Haskell Tool Stack

Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable

Elpy - Emacs Python Development Environment

Poetry - Python packaging and dependency management made easy