Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison with direnv #31

Open
michaelpj opened this issue Dec 4, 2023 · 1 comment
Open

Comparison with direnv #31

michaelpj opened this issue Dec 4, 2023 · 1 comment

Comments

@michaelpj
Copy link

From reading the README this sounds very similar to what direnv gets me, which is widely used in the Nix community. It would be very helpful to have an explanation of the differences!

@thenbe
Copy link

thenbe commented Jul 21, 2024

I believe direnv is primarily concerned with automatically triggering certain actions depending on the current directory. Actions such as load/unload environment variables or entering a nix development environment (e.g. use flake).

direnv, as far as I can tell, has no bearing on the type of shell you enter, be it bash, zsh, fish, nushell, etc. The scenario I am most familiar with is nix develop, where the default is always bash. any-nix-shell and similar tools (e.g. nix-your-shell) allow you to change the default shell for those commands that would otherwise always default to bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants