From 2bab1000e2cbac69f3cd7d6c437eb63a63843b57 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 22 Aug 2023 11:50:19 -0400 Subject: Reload direnv on file changes I only just now learned about watch_file. --- .envrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.envrc') diff --git a/.envrc b/.envrc index 61214db..f4ad167 100644 --- a/.envrc +++ b/.envrc @@ -4,6 +4,11 @@ source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.5.1/direnvrc" "sha256-p4CDMJjuBmEh9pkn2aoJrZqr0DlPZHPU7eXOSDzzcuo=" fi # +# watch some files that effect the dev environment + watch_file shell.nix + watch_file default.nix + watch_file Biz/Bild.nix + watch_file Biz/Bild.hs # if direnv doesn't detect changes to the nix environment, just touch .envrc and # it will refresh use nix -- cgit v1.2.3