add shellcheck directives for .envrc

This commit is contained in:
Jörg Thalheim 2024-07-15 10:50:40 +02:00
parent 69e22fb903
commit 9734eba858
2 changed files with 3 additions and 1 deletions

3
.envrc
View File

@ -1,4 +1,5 @@
# shellcheck shell=bash
strict_env
source ./direnvrc
watch_file direnvrc *.nix
watch_file direnvrc ./*.nix
use flake

View File

@ -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