Hacker GitHub

← All repos

direnv/direnv

View on GitHub ↗ ★ 15,533 Go

unclutter your .profile

30 mentions on Hacker News by 29 people: 6 stories, 24 comments · first 2015-09-21 · latest 2026-03-19

Mentions per year 30 mentions · busiest year 2024 (7)
20082026
  1. direnv, .envrc, "layout uv" https://github.com/direnv/direnv/wiki/Python#uv
    comment by cjp · 2026-03-19 · in Astral to Join OpenAI
  2. FWIW, I looked into it myself too, and found e.g. this direnv setup: https://github.com/direnv/direnv/wiki/Sops
  3. …a regular venv and a second that uses it to manage the whole project. I use the latter. [1] https://github.com/direnv/direnv/wiki/Python
    comment by SAI_Peregrinus · 2025-03-17 · in uv downloads overtake Poetry for Wagtail users
  4. …pip python -m pip install -r requirements.txt Looks like direnv can be extended to use uv: https://github.com/direnv/direnv/wiki/Python#uv
  5. ▲ 2
    Direnv: Load and unload environment variables depending on the current directory
    story by nateb2022 · 2024-12-23 · 0 comments
  6. One minor drawback I've noticed is that direnv doesn't come with uv support out of the box: https://github.com/direnv/direnv/issues/1250
    comment by sunshowers · 2024-12-15 · in Problems with Python dependency management
  7. I didn't know this. I know this ticket is open https://github.com/direnv/direnv/issues/443 but it is not clear to me if it is working for bash
    comment by mongol · 2024-12-08 · in Mise: Dev tools, env vars, task runner
  8. …to the use_nix integration built-in to direnv? There is a fairly detailed (but old) comparison in https://github.com/direnv/direnv/wiki/Nix#some-factors-to-co... and in the meantime lorri and nix-direnv are the only ones still maintained.…
  9. …I just dislike it when people include one as a dependency when they really didn’t need it. [0]: https://github.com/direnv/direnv [1]: https://github.com/jdx/mise
    comment by sgarland · 2024-06-23 · in Ruby: A great language for shell scripts
  10. I also made the export diff configurable, motivated by this post: https://github.com/direnv/direnv/pull/1233
  11. …You can simply add the following line[1] to your .bashrc or whatever: export DIRENV_LOG_FORMAT= [1] https://github.com/direnv/direnv/issues/68#issuecomment-1626...
    comment by Aaronmacaron · 2024-01-31 · in Nix-direnv is a quality of life improvement
  12. …instance has https://github.com/purcell/envrc which set per-buffer variables. More background in https://github.com/direnv/direnv/wiki/Nix .
  13. …I want to load the shell.nix", it's more convenient to use direnv (which uses `nix print-dev-env`). https://github.com/direnv/direnv/wiki/nix Another option is to use `nix develop --command fish`.
    comment by rgoulter · 2023-08-12 · in The many issues plaguing Nix
  14. …Python projects, and projects live in directories.. I find myself constantly reaching for direnv. https://github.com/direnv/direnv/wiki/Python echo "layout python\npip install --upgrade pip pip-tools setuptools wheel\npip-sync" > .envrc…
  15. …automagically for you when you cd into your project directory using something like: https://github.com/direnv/direnv I would avoid poetry. Edit: bah, somebody answered already tl;dr - Setup direnv and pyenv once and foggetaboutit.
  16. …I `cd` out the configuration is removed. If you want to use poetry + direnv, that's also an option. https://github.com/direnv/direnv/wiki/Python#pyenv https://github.com/direnv/direnv/wiki/Python#poetry
    comment by ellisv · 2022-05-10 · in Managing Python Versions with Pyenv
  17. …that it doesn't play well with conda - the Python package management system (see this open issue https://github.com/direnv/direnv/issues/326 ). It can be a dealbreaker for some.
  18. …direnv is complementary to the various language-version tools, so it obviates needing asdf: https://github.com/direnv/direnv/wiki#project-layouts But it seems some folks combine the two: https://blog.mikecordell.com/2021/12/18/better-projec…
  19. ▲ 25
    Direnv: Unclutter Your .profile
    story by tosh · 2022-04-04 · 8 comments
  20. …[2]. But just dropping `poetry shell` in an `.envrc` for direnv is better than nothing too. [1]: https://github.com/direnv/direnv [2]: https://stackoverflow.com/a/50830617/149428
  21. ▲ 2
    Direnv/direnv: unclutter your .profile
    story by leephillips · 2022-02-17 · 0 comments
  22. …sometimes provided by strangers, via a Git repo that maybe I just wanted to look at). Hmm, https://github.com/direnv/direnv/issues/23 "security considerations" Ahh so for that, I don't check in my `.envrc` folders but yeah that's certainly…
    comment by hardwaresofton · 2021-04-25 · in Starting a TypeScript Project in 2021
  23. …sometimes provided by strangers, via a Git repo that maybe I just wanted to look at). Hmm, https://github.com/direnv/direnv/issues/23 "security considerations" Git-crypt seems like a nice way to maybe distribute secrets for accessing one's…
    comment by KajMagnus · 2021-04-25 · in Starting a TypeScript Project in 2021
  24. …Once you hook it up, it automatically enables/disables virtual environments based on directory. https://github.com/direnv/direnv/wiki/Python#pyenv
  25. …These are probably helpful: https://nixos.wiki/wiki/Development_environment_with_nix-she... https://github.com/direnv/direnv/wiki/Nix https://nixos.org/nixpkgs/manual/#sec-language-go https://nixos.org/nixpkgs/manual/#python
  26. …+ Nix is hard to learn. + Not compatible with the standard environment managers for each language. https://github.com/direnv/direnv https://nixos.org/nix/
  27. ▲ 3
    Direnv
    story by csdrane · 2018-12-12 · 0 comments
  28. https://github.com/direnv/direnv very Important for me, to load envs
    comment by fangxing · 2018-09-01 · in CLI: Improved
  29. ▲ 1
    Direnv/direnv: Unclutter your .profile
    story by olalonde · 2016-08-26 · 0 comments
  30. ▲ 1
    Ask HN: Generic Replacement for Rbenv, NVM, GVM?
    story by Stratus3D · 2015-09-21 · 2 comments