Skip to content

Commit

Permalink
docs: fix bashrc not recognizing oh-my-posh is installed
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jeroen Evens authored and JanDeDobbeleer committed Oct 10, 2020
1 parent c49a8ee commit c2c50f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/installation.mdx
Expand Up @@ -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
```
Expand Down

0 comments on commit c2c50f2

Please sign in to comment.