dotfiles.2022/_home/dot_sz.shrc.d/bash.post/10_oh-my-posh
Gal Szkolnik 9b5c2c497c Editor streamlining
Oh-My-Posh prompt will not show up inside emacs shell.
`editor` is the alias I should get used to use instead of vi, adjusted
aliases so that editor will be used.
Enabled relevant layers in the spacemacs/init.el file
2022-06-07 12:36:29 -04:00

6 lines
248 B
Text

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