mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
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:
parent
74adaf6802
commit
c895de4daa
1 changed files with 2 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ pkgs.mkShell {
|
||||||
Then add the line `use nix` to your envrc:
|
Then add the line `use nix` to your envrc:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ echo "use nix" >> .envrc
|
$ echo "if has nix; then use nix; fi" >> .envrc
|
||||||
$ direnv allow
|
$ direnv allow
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -199,7 +199,7 @@ $ nix flake new -t github:nix-community/nix-direnv <desired output path>
|
||||||
### Integrating with a existing flake
|
### Integrating with a existing flake
|
||||||
|
|
||||||
```console
|
```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
|
The `use flake` line also takes an additional arbitrary flake parameter, so you
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue