unclutter your .profile (by direnv)

Direnv Alternatives

Similar projects and alternatives to direnv

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better direnv alternative or higher similarity.

direnv reviews and mentions

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 2022-11-22.
  • Vent: I'm tired of the 1001 libraries of virtual environments.
    8 projects | reddit.com/r/Python | 22 Nov 2022
    I submitted this PR to have built-in poetry support in direnv. You can add the same to your direnvrc in the meantime. See also the direnv wiki.
  • Contributing to devenv
    3 projects | dev.to | 21 Nov 2022
    (Optional) Install direnv, most likely you already use this :-)
  • Managing multiple Go versions in the local environment
    10 projects | reddit.com/r/golang | 21 Nov 2022
    Yeah! I combine gimme with direnv , then entering a module root with a proper .envrc automatically sets the golang version in the shell, and also installs the version if its not present yet.
  • Virtual Environments with Eglot, Tramp, and Pyright · robbmann
    2 projects | reddit.com/r/emacs | 20 Nov 2022
    Yes, direnv is great. I've submitted a PR to have poetry support built-in. It's been working well in my direnvrc.
  • How do you handle project specific configuration?
    14 projects | reddit.com/r/neovim | 10 Nov 2022
    I like direnv since sometime I want custom configurations for my shell as well and then the direnv vim plugin for actual vim configuration.
  • Pipenv, venv or virtualenv or ?
    7 projects | reddit.com/r/Python | 28 Oct 2022
    Another, tool you may be interested in and one I'd recommend is direnv which can load and unload environment variables depending on the current directory. In simple terms it allows you (amongst other things) to activate a virtual environment simply by cding into your project directory, deactivating it automatically when you cd out of the directory. It has built in support for python, pyenv, pipenv and I've submitted a patch to have poetry support built in as well by default.
  • Eglot has landed on master: Emacs now has a built-in LSP client
    10 projects | news.ycombinator.com | 23 Oct 2022
    I've had a good experience with direnv[1] and emacs-direnv[2].

    Direnv can automatically load an environment when you enter a directory, so it automatically "opens" virtualenvs/nix shells/etc. The Emacs direnv mode ensures that each buffer sees the direnv mode for its project directory.

    I've found this to be a great compromise between automatic behavior on the one hand and transparency + control on the other—I get the right environment loaded automatically very consistently and, if something goes wrong, I can open a shell and poke around to see what's going on (is my nix shell messed up? is the right tool not loaded via direnv? etc). The only time I need to do anything manually is if I make a change to the environment and need to update Emacs about it, in which case I just run M-x direnv-update-environment.

    Once I got this set up, I can just rely on executable-find to check for (and find) exactly the right tool on a per-project basis—no more worrying about global or seeing the wrong version of a tool. This also made it easy to do stuff like only run formatting if the corresponding tool is available: I add hooks to various programming language modes that only turn on lsp/formatting/etc if executable-find sees the corresponding executable.

    Compared to the hassle I've had to go through helping my colleagues debug VSCode not seeing the right conda environment, virtualenv or the right version of various tools, Emacs + direnv has been a far nicer and more consistent experience.

    [1]: https://direnv.net/

    [2]: https://github.com/wbolster/emacs-direnv

  • Show HN: Postgres WASM
    16 projects | news.ycombinator.com | 3 Oct 2022
    I think `direnv` [1] may be closer to `asdf` than this. They also mention it, and the integration, `asdf-direnv` on their website [2].

    [1] https://direnv.net/

  • Require commit-msg hook for all users...
    4 projects | reddit.com/r/github | 19 Sep 2022
    My preferred method for managing Git hooks is direnv: https://knpw.rs/blog/direnv-git-hooks
  • Automate GitHub API Calls With Ruby, Keyboard Maestro, and 1Password CLI
    5 projects | dev.to | 7 Sep 2022
    In the past, this would require copying the secret file (such as .envrc if using direnv) from one computer to the other, and then updating it on both computers each time I renew it. It also requires remembering to back up the gitignored file on an external drive if I ever replace my Macs.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 26 Nov 2022
    InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code. Learn more →


Basic direnv repo stats
12 days ago
Truly a developer’s best friend
Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.