3 ms·
Does direnv have an advantage over `nix develop` in that regard?
by Smaug123 4y ago
Does direnv have an advantage over `nix develop` in that regard?
- rgoulter 4y agoYup: direnv hooks into the shell, so that it adjusts the environment variables / PATH when you `cd` into the directory. (Well, you do need to run `direnv allow` to indicate you trust the `.envrc` file). (Also, `nix develop` drops you into a bash shell, which is annoying coming from fish).
- e3bc54b2 4y agodirenv has integration with old nix shell as well as new nix develop. It also happens to have lot more editor integration that can utilize nix indirectly instead of not having access to nix at all.