Merge pull request #417 from kingarrrt/master

_nix_direnv_watches: update path regex to match capitalized path
This commit is contained in:
Bryan Bennett 2023-11-27 08:37:15 -05:00 committed by GitHub
commit 9a96e30d9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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