From 9734eba85802e5f1e58642b9b3bb7eceaf8b8ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 15 Jul 2024 10:50:40 +0200 Subject: [PATCH] add shellcheck directives for .envrc --- .envrc | 3 ++- templates/flake/.envrc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.envrc b/.envrc index 57b77334..e66afc9e 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,5 @@ +# shellcheck shell=bash strict_env source ./direnvrc -watch_file direnvrc *.nix +watch_file direnvrc ./*.nix use flake diff --git a/templates/flake/.envrc b/templates/flake/.envrc index 9ee556b1..c9fb52a4 100644 --- a/templates/flake/.envrc +++ b/templates/flake/.envrc @@ -1,3 +1,4 @@ +# shellcheck shell=bash if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w=" fi