diff --git a/docs/docs/installation.mdx b/docs/docs/installation.mdx index 0ad2cb35134b..ec9be527951c 100644 --- a/docs/docs/installation.mdx +++ b/docs/docs/installation.mdx @@ -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 ```