mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
README: Clarify a stance on git-tracking the direnv layout directory.
Also took the liberty to update the wording in a way that I felt read a bit more smoothly. closes #138
This commit is contained in:
parent
1741888b4c
commit
d3651bdd23
1 changed files with 7 additions and 5 deletions
12
README.md
12
README.md
|
|
@ -209,14 +209,16 @@ $ direnv allow
|
|||
|
||||
## Storing .direnv outside the project directory
|
||||
|
||||
A `.direnv` directory will be created in each `use_nix` project, which might
|
||||
interact badly with backups (e.g. Dropbox) or IDEs.
|
||||
By default, every direnv-enabled directory will contain a `.direnv` directory.
|
||||
`.direnv` acts as a pure cache and is fully reproducible.
|
||||
To that end, we do not recommend tracking this directory or its contents,
|
||||
even in the scenario that the project tracks the a `.direnvrc`.
|
||||
|
||||
Therefore it's possible to override a function called `direnv_layout_dir` in
|
||||
`$HOME/.config/direnv/direnvrc` or in each project's `.envrc`.
|
||||
It is possible to override a function called `direnv_layout_dir`
|
||||
in `~/.config/direnv/direnvrc` (or in each project's `.direnvrc` or `.envrc`).
|
||||
|
||||
The following example will create a unique directory name per project
|
||||
in `$HOME/.cache/direnv/layouts/`:
|
||||
in `~/.cache/direnv/layouts/`:
|
||||
|
||||
```bash
|
||||
# Place in "$HOME"/.config/direnv/direnvrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue