From 1829f987e9f09f4f53cebd652766b4d0e1bde85d Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Sat, 5 Apr 2025 16:37:09 -0400 Subject: [PATCH] Update regex to match new direnv versions --- bash/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/.bashrc b/bash/.bashrc index ddabf3b..04331fc 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -31,7 +31,7 @@ export ORIG_PS1=${PS1} if which direnv &> /dev/null; then update_prompt() { - if direnv status | grep -iq 'RC allowed true'; then + if direnv status | grep -iEq 'RC allowed (true|0)'; then PS1=${DIRENV_PS1} else PS1=${ORIG_PS1}