zsh: don't load certain plugins when their required binaries don't exist

This commit is contained in:
PowerUser64 2025-04-25 17:44:46 -07:00
parent 7898226366
commit 01bf4de331

4
.zshrc
View file

@ -71,9 +71,13 @@ ${SKIP_PLUGINS:-false} || {
fi
# Plugins for use with Nix
if command -v nix &> /dev/null; then
zinit load "chisui/zsh-nix-shell"
zinit load "spwhitt/nix-zsh-completions"
fi
if command -v direnv &> /dev/null; then
zinit snippet OMZP::direnv
fi
## Theme
# terminal colors