From 929d61610be078007cc55da3612c3e17840dfa9c Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Oct 2024 17:51:47 +0200 Subject: fix(common/.envrc): Actually use and set a shebang --- common/.envrc | 2 ++ templates/awk/.envrc | 10 +--------- templates/c/.envrc | 11 +---------- templates/rust/.envrc | 12 +----------- templates/shell/.envrc | 10 +--------- 5 files changed, 6 insertions(+), 39 deletions(-) mode change 100644 => 120000 templates/awk/.envrc mode change 100644 => 120000 templates/c/.envrc mode change 100644 => 120000 templates/rust/.envrc mode change 100644 => 120000 templates/shell/.envrc 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 deleted file mode 100644 index 3bc1085..0000000 --- a/templates/awk/.envrc +++ /dev/null @@ -1,9 +0,0 @@ -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 diff --git a/templates/awk/.envrc b/templates/awk/.envrc new file mode 120000 index 0000000..493f948 --- /dev/null +++ b/templates/awk/.envrc @@ -0,0 +1 @@ +../../common/.envrc \ No newline at end of file diff --git a/templates/c/.envrc b/templates/c/.envrc deleted file mode 100644 index 8f9d5d7..0000000 --- a/templates/c/.envrc +++ /dev/null @@ -1,10 +0,0 @@ -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 diff --git a/templates/c/.envrc b/templates/c/.envrc new file mode 120000 index 0000000..493f948 --- /dev/null +++ b/templates/c/.envrc @@ -0,0 +1 @@ +../../common/.envrc \ No newline at end of file diff --git a/templates/rust/.envrc b/templates/rust/.envrc deleted file mode 100644 index c8c5665..0000000 --- a/templates/rust/.envrc +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/templates/rust/.envrc b/templates/rust/.envrc new file mode 120000 index 0000000..493f948 --- /dev/null +++ b/templates/rust/.envrc @@ -0,0 +1 @@ +../../common/.envrc \ No newline at end of file diff --git a/templates/shell/.envrc b/templates/shell/.envrc deleted file mode 100644 index 3bc1085..0000000 --- a/templates/shell/.envrc +++ /dev/null @@ -1,9 +0,0 @@ -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 diff --git a/templates/shell/.envrc b/templates/shell/.envrc new file mode 120000 index 0000000..493f948 --- /dev/null +++ b/templates/shell/.envrc @@ -0,0 +1 @@ +../../common/.envrc \ No newline at end of file -- cgit 1.4.1