Check if omz is available first

This commit is contained in:
Alexander Hess 2024-07-03 08:24:46 +02:00
parent 9ae6cebc17
commit 16cde0d3d6
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -66,7 +66,9 @@ setopt INC_APPEND_HISTORY
# Initialize oh-my-zsh's plugins
plugins=(
if [ -r "$ZSH/oh-my-zsh.sh" ]; then
plugins=(
command-not-found
dirhistory
dotenv # config in ~/.zshenv; `_update_repositories` temporarily disables this
@ -76,10 +78,11 @@ plugins=(
pip # completions for pip
poetry # completions for poetry
z
)
)
source "$ZSH/oh-my-zsh.sh"
source "$ZSH/oh-my-zsh.sh"
fi
# Initialize zplug's plugins