Make the example usage commands less intrusive

This changes some of the examples to make the usage of direnv less
intrusive for non-nix folks.
This commit is contained in:
Miroslav Prasil 2025-05-01 16:00:40 +00:00
parent 74adaf6802
commit c895de4daa

View file

@ -159,7 +159,7 @@ pkgs.mkShell {
Then add the line `use nix` to your envrc:
```console
$ echo "use nix" >> .envrc
$ echo "if has nix; then use nix; fi" >> .envrc
$ direnv allow
```
@ -199,7 +199,7 @@ $ nix flake new -t github:nix-community/nix-direnv <desired output path>
### Integrating with a existing flake
```console
$ echo "use flake" >> .envrc && direnv allow
$ echo "if has nix; then use flake; fi" >> .envrc && direnv allow
```
The `use flake` line also takes an additional arbitrary flake parameter, so you