docs: fix bashrc not recognizing oh-my-posh is installed

Bash doesn't seem to recognize oh-my-posh is installed with -f oh-my-posh
using -x "$(command -v oh-my-posh)" fixes this
This commit is contained in:
Jeroen Evens 2020-10-10 15:15:21 +00:00 committed by Jan De Dobbeleer
parent c49a8ee443
commit c2c50f2877

View file

@ -124,7 +124,7 @@ function _update_ps1() {
PS1="$(oh-my-posh -config ~/downloadedtheme.json -error $?)"
}
if [ "$TERM" != "linux" ] && [ -f oh-my-posh ]; then
if [ "$TERM" != "linux" ] && [ -x "$(command -v oh-my-posh)" ]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
```