Update regex to match new direnv versions
This commit is contained in:
parent
16bbf912c1
commit
1829f987e9
@ -31,7 +31,7 @@ export ORIG_PS1=${PS1}
|
|||||||
|
|
||||||
if which direnv &> /dev/null; then
|
if which direnv &> /dev/null; then
|
||||||
update_prompt() {
|
update_prompt() {
|
||||||
if direnv status | grep -iq 'RC allowed true'; then
|
if direnv status | grep -iEq 'RC allowed (true|0)'; then
|
||||||
PS1=${DIRENV_PS1}
|
PS1=${DIRENV_PS1}
|
||||||
else
|
else
|
||||||
PS1=${ORIG_PS1}
|
PS1=${ORIG_PS1}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user