user/direnv: fix cache directory name
This commit is contained in:
parent
3a5115c86a
commit
b2ed3a3c3d
1 changed files with 2 additions and 3 deletions
|
|
@ -3,8 +3,7 @@ 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
|
||||
echo -n "-"
|
||||
basename $PWD
|
||||
echo -n "$(echo -n "$PWD" | shasum | cut -d ' ' -f 1)"
|
||||
echo -n "-$(basename $PWD)"
|
||||
)}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue