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
2 changed files with 9 additions and 4 deletions
|
|
@ -45,11 +45,14 @@ in {
|
|||
optionalString (plugin.tags != [ ]) ''
|
||||
${concatStrings (map (tag: ", ${tag}") plugin.tags)}
|
||||
''
|
||||
}
|
||||
}
|
||||
'') cfg.plugins)}
|
||||
''}
|
||||
|
||||
zplug install
|
||||
if ! zplug check; then
|
||||
zplug install
|
||||
fi
|
||||
|
||||
zplug load
|
||||
'';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue