mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-25 18:42:19 +00:00
only load oh-my-posh and mcfly if the commands are present
This commit is contained in:
parent
47b9484395
commit
377cb77cce
1 changed files with 7 additions and 3 deletions
10
zsh/.zshrc
10
zsh/.zshrc
|
@ -22,6 +22,10 @@ if [ -f $HOME/.zshalias ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Shell initializations
|
# Shell initializations
|
||||||
eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/jbowdre/dotfiles/main/oh-my-posh/vpotato.minimal.omp.json')"
|
if [ $(which oh-my-posh) ]; then
|
||||||
enable_poshtransientprompt
|
eval "$(oh-my-posh init zsh --config 'https://raw.githubusercontent.com/jbowdre/dotfiles/main/oh-my-posh/vpotato.minimal.omp.json')"
|
||||||
eval "$(mcfly init zsh)"
|
enable_poshtransientprompt
|
||||||
|
fi
|
||||||
|
if [ $(which mcfly) ]; then
|
||||||
|
eval "$(mcfly init zsh)"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue