aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-git-init
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-11-04 12:35:14 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-11-04 12:35:14 -0400
commitf9be4ab4c1b364481d9f92dc6b5d3306206407c9 (patch)
treebce1239e03430259b7126d331a681c85c3141424 /.envrc-git-init
parentupdates incl. ldc-1.35.0, direnv-2.4.0 (diff)
nix housekeepingdoc-reform_v0.12.0
Diffstat (limited to '.envrc-git-init')
-rw-r--r--.envrc-git-init4
1 files changed, 4 insertions, 0 deletions
diff --git a/.envrc-git-init b/.envrc-git-init
new file mode 100644
index 0000000..ca74ec3
--- /dev/null
+++ b/.envrc-git-init
@@ -0,0 +1,4 @@
+if [[ ! -d ./.git ]]; then
+ git init
+ git add .
+fi