zplug: Reduce noise (#1441)
Running `zplug install` will always product output, even if there is nothing to do. Gating it behind a `zplug check` eliminates that output when there is nothing to do, and is recommended in the zplug README.
This commit is contained in:
parent
f146620897
commit
1a6d6b8ace
|
@ -49,7 +49,10 @@ in {
|
|||
'') cfg.plugins)}
|
||||
''}
|
||||
|
||||
if ! zplug check; then
|
||||
zplug install
|
||||
fi
|
||||
|
||||
zplug load
|
||||
'';
|
||||
|
||||
|
|
|
@ -38,8 +38,10 @@ with lib;
|
|||
assertFileContains home-files/.zshrc \
|
||||
'zplug "lib/clipboard", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"'
|
||||
|
||||
assertFileRegex home-files/.zshrc \
|
||||
'^zplug install$'
|
||||
assertFileContains home-files/.zshrc \
|
||||
'if ! zplug check; then
|
||||
zplug install
|
||||
fi'
|
||||
|
||||
assertFileRegex home-files/.zshrc \
|
||||
'^zplug load$'
|
||||
|
|
Loading…
Reference in a new issue