diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-04 17:51:47 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-10-04 17:51:47 +0200 |
commit | 929d61610be078007cc55da3612c3e17840dfa9c (patch) | |
tree | ac943c4ca7a8654ad6efc66aa2ecfd5592ccf8ed | |
parent | fix(common/init): Correctly quote inputted text (diff) | |
download | flake-templates-929d61610be078007cc55da3612c3e17840dfa9c.tar.gz flake-templates-929d61610be078007cc55da3612c3e17840dfa9c.zip |
fix(common/.envrc): Actually use and set a shebang
-rw-r--r-- | common/.envrc | 2 | ||||
l---------[-rw-r--r--] | templates/awk/.envrc | 10 | ||||
l---------[-rw-r--r--] | templates/c/.envrc | 11 | ||||
l---------[-rw-r--r--] | templates/rust/.envrc | 12 | ||||
l---------[-rw-r--r--] | templates/shell/.envrc | 10 |
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 |