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} diff --git a/install.sh b/install.sh index d306db7..1b07748 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,6 @@ set -ex echo "PWD: $PWD" # Coder dotfiles (and most other ways of doing this) will not do a recursive clone, so do that in install script. git submodule init && git submodule update - # Match case insensitively to make things easier for this part shopt -s nocasematch