aboutsummaryrefslogtreecommitdiffhomepage
path: root/.envrc-git-init
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2024-05-13 15:47:09 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2024-05-13 18:17:03 -0400
commitf4a280dc6a869c540975b697f614c5172007d7a2 (patch)
tree7f8568a66b662eec555b43b466a92a4c186ef500 /.envrc-git-init
parentset nixVersions.nix_2_21 (diff)
nix flake and envrc related
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