feat: use nested gitignore to automatically make git ignore state dir

This commit is contained in:
technofab 2025-07-11 21:02:19 +02:00
parent bada848ca1
commit 0734a6b27a
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View file

@ -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"
}
#