From 647d7feb7f4b093a208a25460ba0cf08a079b364 Mon Sep 17 00:00:00 2001 From: Arthur Noel Date: Sun, 26 Nov 2023 21:06:37 +0000 Subject: [PATCH] _nix_direnv_watches: update path regex to match capitalized path --- direnvrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direnvrc b/direnvrc index b60a2ba..5bb9161 100644 --- a/direnvrc +++ b/direnvrc @@ -208,7 +208,7 @@ _nix_direnv_watches() { return fi while IFS= read -r line; do - local regex='"path": "(.+)"$' + local regex='"[Pp]ath": "(.+)"$' if [[ "$line" =~ $regex ]]; then local path="${BASH_REMATCH[1]}" if [[ "$path" == "${XDG_DATA_HOME:-${HOME:-/var/empty}/.local/share}/direnv/allow/"* ]]; then