mirror of
https://gitlab.com/rensa-nix/direnv.git
synced 2025-12-12 18:10:06 +01:00
feat: use nested gitignore to automatically make git ignore state dir
This commit is contained in:
parent
bada848ca1
commit
0734a6b27a
2 changed files with 10 additions and 0 deletions
3
direnvrc
3
direnvrc
|
|
@ -111,6 +111,9 @@ __ren_init_project() {
|
|||
mkdir -p "${REN_STATE}/direnv"
|
||||
# shellcheck disable=SC2034
|
||||
direnv_layout_dir="${REN_STATE}/direnv"
|
||||
|
||||
# add nested gitignore which ignores the whole state dir
|
||||
echo "**/*" >"$REN_STATE/.gitignore"
|
||||
}
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue