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
10
.zshrc
10
.zshrc
|
@ -71,9 +71,13 @@ ${SKIP_PLUGINS:-false} || {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Plugins for use with Nix
|
# Plugins for use with Nix
|
||||||
zinit load "chisui/zsh-nix-shell"
|
if command -v nix &> /dev/null; then
|
||||||
zinit load "spwhitt/nix-zsh-completions"
|
zinit load "chisui/zsh-nix-shell"
|
||||||
zinit snippet OMZP::direnv
|
zinit load "spwhitt/nix-zsh-completions"
|
||||||
|
fi
|
||||||
|
if command -v direnv &> /dev/null; then
|
||||||
|
zinit snippet OMZP::direnv
|
||||||
|
fi
|
||||||
|
|
||||||
## Theme
|
## Theme
|
||||||
# terminal colors
|
# terminal colors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue