>ven. 20 févr. 2026 at 21:29, Carlo Zancanaro <[email protected]> wrote:
> Hi Ben, > > On Fri, Feb 20 2026, Ben Sturmfels wrote: >> I noticed that the common direnv idiom with "--pure" isn't quite pure, >> in that it doesn't clear existing environment variables. Has anyone >> come up with an approach that does clear the environment fully? >> >> You typically put something like this in your .direnv file: >> >> eval "$(guix shell --search-paths --pure ...)" > > These days I just have either "use guix --manifest=manifest.scm" or "use > guix --development --file=guix.scm". The eval/--search-paths call is > handled by direnv itself. Let me just recall, for those not familiar with direnv goodies, that the "use guix" idiom is part of direnv’s standard library [0]. See also [1]. C. [0] https://github.com/direnv/direnv/blob/02040c767ba64b32a9b5ef2d8d2e00983d6bc958/stdlib.sh#L1422 [1] https://guix.gnu.org/cookbook/en/html_node/Guix-environment-via-direnv.html
signature.asc
Description: PGP signature
