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.
This commit is contained in:
parent
d6687d8fa4
commit
09a810495f
6 changed files with 25 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
|||
if [[ -n "$(which-command oh-my-posh)" ]]; then
|
||||
OHMYPOSH_CONFIG=''
|
||||
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="~/.poshtheme.omp.json"
|
||||
eval "$(oh-my-posh init bash --config $OHMYPOSH_CONFIG)"
|
||||
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="--config ~/.poshtheme.omp.json"
|
||||
eval "$(oh-my-posh init bash $OHMYPOSH_CONFIG)"
|
||||
unset OHMYPOSH_CONFIG
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue