mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
README: minor formatting/wording fixes
This commit is contained in:
parent
c6be02bdf0
commit
c9f9be0a46
1 changed files with 2 additions and 2 deletions
|
|
@ -182,13 +182,13 @@ in `$HOME/.cache/direnv/layouts/`:
|
||||||
declare -A direnv_layout_dirs
|
declare -A direnv_layout_dirs
|
||||||
direnv_layout_dir() {
|
direnv_layout_dir() {
|
||||||
echo "${direnv_layout_dirs[$PWD]:=$(
|
echo "${direnv_layout_dirs[$PWD]:=$(
|
||||||
echo -n "$XDG_CACHE_HOME"/direnv/layouts/;
|
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
|
||||||
echo -n "$PWD" | shasum | cut -d ' ' -f 1
|
echo -n "$PWD" | shasum | cut -d ' ' -f 1
|
||||||
)}"
|
)}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
During direnv setup `direnv_layout_dir` can be called multiple times and with different values of `$PWD`
|
During direnv setup `direnv_layout_dir` can be called multiple times and with different values of `$PWD`
|
||||||
(when including other `.envrc` files). Therefore cache its results in dictionary `direnv_layout_dirs`.
|
(when other `.envrc` files are included). Therefore cache its results in dictionary `direnv_layout_dirs`.
|
||||||
|
|
||||||
## Manually re-triggering evaluation
|
## Manually re-triggering evaluation
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue