Development environment with nix-shell: Difference between revisions

imported>Makefu
No edit summary
imported>Bensleveritt
m Fixes minor typos, and edits for readablilty
Line 63: Line 63:
</syntaxHighlight>
</syntaxHighlight>


In bonus, you can see all the variables set by the nix-shell :)
Bonus: you can see all the variables set by the nix-shell :)


No you can leave your project and the environment will be unloaded:
Now you can leave your project and the environment will be unloaded:
<syntaxHighlight lang=bash>
<syntaxHighlight lang=bash>
$ cd ..
$ cd ..
Line 73: Line 73:
No need to use <code>direnv allow</code> anymore, the next time you go to your project the environment will be loaded!
No need to use <code>direnv allow</code> anymore, the next time you go to your project the environment will be loaded!


More explanation and configuration tweak can be found in the Direnv wiki [https://github.com/direnv/direnv/wiki/Nix]
More explanation and configuration tweaks can be found in the Direnv wiki [https://github.com/direnv/direnv/wiki/Nix].


== Troubleshooting ==
== Troubleshooting ==