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
20082026
-
direnv, .envrc, "layout uv" https://github.com/direnv/direnv/wiki/Python#uv
comment by cjp · 2026-03-19 · in Astral to Join OpenAI -
FWIW, I looked into it myself too, and found e.g. this direnv setup: https://github.com/direnv/direnv/wiki/Sops
comment by berkes · 2026-02-24 · in Show HN: enveil – hide your .env secrets from prAIng eyes -
…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 -
…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
comment by krupan · 2025-02-19 · in A year of uv: pros, cons, and should you migrate -
▲ 2
Direnv: Load and unload environment variables depending on the current directorystory by nateb2022 · 2024-12-23 · 0 comments
-
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 -
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 -
…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.…
comment by Mathnerd314 · 2024-07-10 · in Automate Project Environments with Devbox and Direnv (2023) -
…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 -
I also made the export diff configurable, motivated by this post: https://github.com/direnv/direnv/pull/1233
comment by zimbatm · 2024-02-01 · in Nix-direnv is a quality of life improvement -
…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 -
…instance has https://github.com/purcell/envrc which set per-buffer variables. More background in https://github.com/direnv/direnv/wiki/Nix .
comment by nextos · 2023-10-26 · in Nix Survival Mode: macOS upgrades won't break Nix anymore -
…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 -
…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…
comment by deizel · 2023-07-31 · in Ask HN: Is anyone using PyPy for real work? -
…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.
comment by recuter · 2023-03-04 · in Testing multiple Python versions with nox and pyenv -
…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 -
…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.
comment by kot-behemoth · 2022-04-05 · in Switching from pyenv, rbenv, goenv and nvm to asdf -
…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…
comment by js2 · 2022-04-05 · in Switching from pyenv, rbenv, goenv and nvm to asdf -
▲ 25
Direnv: Unclutter Your .profilestory by tosh · 2022-04-04 · 8 comments
-
…[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
comment by tedmiston · 2022-03-05 · in A Python program can be outside of a virtual environment it uses -
▲ 2
Direnv/direnv: unclutter your .profilestory by leephillips · 2022-02-17 · 0 comments
-
…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 -
…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 -
…Once you hook it up, it automatically enables/disables virtual environments based on directory. https://github.com/direnv/direnv/wiki/Python#pyenv
comment by erichurkman · 2019-09-24 · in Ask HN: How do you handle/maintain local Python environments? -
…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
comment by GlennS · 2019-06-18 · in Things I learnt the hard way in thirty years of software development -
…+ Nix is hard to learn. + Not compatible with the standard environment managers for each language. https://github.com/direnv/direnv https://nixos.org/nix/
comment by GlennS · 2019-01-04 · in Show HN: Jetpack – Webpack made more convenient -
▲ 3
Direnvstory by csdrane · 2018-12-12 · 0 comments
-
https://github.com/direnv/direnv very Important for me, to load envs
comment by fangxing · 2018-09-01 · in CLI: Improved -
▲ 1
Direnv/direnv: Unclutter your .profilestory by olalonde · 2016-08-26 · 0 comments
-
▲ 1
Ask HN: Generic Replacement for Rbenv, NVM, GVM?story by Stratus3D · 2015-09-21 · 2 comments