mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
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:
parent
c49a8ee443
commit
c2c50f2877
|
@ -124,7 +124,7 @@ function _update_ps1() {
|
||||||
PS1="$(oh-my-posh -config ~/downloadedtheme.json -error $?)"
|
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"
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue