only load oh-my-posh and mcfly if the commands are present

This commit is contained in:
John Bowdre 2022-07-03 11:52:10 -05:00
parent 47b9484395
commit 377cb77cce

View file

@ -22,6 +22,10 @@ if [ -f $HOME/.zshalias ]; then
fi
# Shell initializations
eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/jbowdre/dotfiles/main/oh-my-posh/vpotato.minimal.omp.json')"
enable_poshtransientprompt
eval "$(mcfly init zsh)"
if [ $(which oh-my-posh) ]; then
eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/jbowdre/dotfiles/main/oh-my-posh/vpotato.minimal.omp.json')"
enable_poshtransientprompt
fi
if [ $(which mcfly) ]; then
eval "$(mcfly init zsh)"
fi