about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--common/.envrc2
l---------[-rw-r--r--]templates/awk/.envrc10
l---------[-rw-r--r--]templates/c/.envrc11
l---------[-rw-r--r--]templates/rust/.envrc12
l---------[-rw-r--r--]templates/shell/.envrc10
5 files changed, 6 insertions, 39 deletions
diff --git a/common/.envrc b/common/.envrc
index 3bc1085..3db39e6 100644
--- a/common/.envrc
+++ b/common/.envrc
@@ -1,3 +1,5 @@
+#!/usr/bin/env sh
+
 use flake || use nix
 watch_file flake.nix
 
diff --git a/templates/awk/.envrc b/templates/awk/.envrc
index 3bc1085..493f948 100644..120000
--- a/templates/awk/.envrc
+++ b/templates/awk/.envrc
@@ -1,9 +1 @@
-use flake || use nix
-watch_file flake.nix
-
-PATH_add ./scripts
-
-if on_git_branch; then
-  echo && git status --short --branch &&
-  echo && git fetch --verbose
-fi
+../../common/.envrc
\ No newline at end of file
diff --git a/templates/c/.envrc b/templates/c/.envrc
index 8f9d5d7..493f948 100644..120000
--- a/templates/c/.envrc
+++ b/templates/c/.envrc
@@ -1,10 +1 @@
-use flake || use nix
-watch_file flake.nix
-
-PATH_add ./target
-PATH_add ./scripts
-
-if on_git_branch; then
-  echo && git status --short --branch &&
-  echo && git fetch --verbose
-fi
+../../common/.envrc
\ No newline at end of file
diff --git a/templates/rust/.envrc b/templates/rust/.envrc
index c8c5665..493f948 100644..120000
--- a/templates/rust/.envrc
+++ b/templates/rust/.envrc
@@ -1,11 +1 @@
-use flake || use nix
-watch_file flake.nix
-
-PATH_add ./target/debug
-PATH_add ./target/release
-PATH_add ./scripts
-
-if on_git_branch; then
-  echo && git status --short --branch &&
-  echo && git fetch --verbose
-fi
+../../common/.envrc
\ No newline at end of file
diff --git a/templates/shell/.envrc b/templates/shell/.envrc
index 3bc1085..493f948 100644..120000
--- a/templates/shell/.envrc
+++ b/templates/shell/.envrc
@@ -1,9 +1 @@
-use flake || use nix
-watch_file flake.nix
-
-PATH_add ./scripts
-
-if on_git_branch; then
-  echo && git status --short --branch &&
-  echo && git fetch --verbose
-fi
+../../common/.envrc
\ No newline at end of file