dotfiles.2022/_home/dot_sz.shrc.d/bash.post/10_oh-my-posh
Gal@Shefet 09a810495f Fixed omp prompt
Fixed: .envrc shows up when `direnv` does not exists
Fixed: history hook was running before _omp_hook, losing the latest
       error code.
2022-09-27 13:02:30 -04:00

6 lines
231 B
Text

if [[ -n "$(which-command oh-my-posh)" ]]; then
OHMYPOSH_CONFIG=''
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="--config ~/.poshtheme.omp.json"
eval "$(oh-my-posh init bash $OHMYPOSH_CONFIG)"
unset OHMYPOSH_CONFIG
fi