zsh: don't load certain plugins when their required binaries don't exist
This commit is contained in:
parent
7898226366
commit
01bf4de331
1 changed files with 7 additions and 3 deletions
4
.zshrc
4
.zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue