mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 12:22:17 +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
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue