From 1bf64d6cdc293a805574cba5cbb3f15f7f399467 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 3 Jul 2022 11:57:30 -0500 Subject: [PATCH] improve command presence detection --- zsh/.zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index c4e46ac..a67c9ea 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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