diff --git a/config/bash/shell b/config/bash/shell index 9002cf5..f4d3af8 100644 --- a/config/bash/shell +++ b/config/bash/shell @@ -43,4 +43,11 @@ fi eval "$(zoxide init bash)" # Oh My Posh -eval "$(oh-my-posh init bash --config $PANAMA_PATH/config/dot/ohmyposh/gib.omp.json)" +# Guarded for the same reason the nvm source above is: oh-my-posh is a package, +# and a shell opened before it is installed -- a stage re-run by hand, an +# install that failed partway -- would otherwise print command-not-found on +# every prompt. An unthemed prompt is a worse shell; an erroring one is a +# broken-looking machine. +if command -v oh-my-posh >/dev/null 2>&1; then + eval "$(oh-my-posh init bash --config "$PANAMA_PATH/config/dot/ohmyposh/gib.omp.json")" +fi