direnv: store .direnv in ~/.cache
This commit is contained in:
parent
5773d144aa
commit
eb0f2cb733
2 changed files with 11 additions and 0 deletions
8
res/direnvrc
Normal file
8
res/direnvrc
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
: ${XDG_CACHE_HOME:=$HOME/.cache}
|
||||
declare -A direnv_layout_dirs
|
||||
direnv_layout_dir() {
|
||||
echo "${direnv_layout_dirs[$PWD]:=$(
|
||||
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
|
||||
echo -n "$PWD" | shasum | cut -d ' ' -f 1
|
||||
)}"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue