improve command presence detection

This commit is contained in:
John Bowdre 2022-07-03 11:57:30 -05:00
parent 377cb77cce
commit 1bf64d6cdc

View file

@ -22,10 +22,10 @@ if [ -f $HOME/.zshalias ]; then
fi
# Shell initializations
if [ $(which oh-my-posh) ]; then
if type oh-my-posh > /dev/null; 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
if type mcfly > /dev/null; then
eval "$(mcfly init zsh)"
fi