diff options
author | Paho Lurie-Gregg <paho@paholg.com> | 2020-09-06 02:16:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 11:16:34 +0200 |
commit | 1a6d6b8acee1537e6cf48dbc5b32dacba06e8ef3 (patch) | |
tree | 77ed37b17eb052120a7109f9ef3b356056005750 /modules/programs/zplug.nix | |
parent | f14662089757959e726ad2713c9420784cb71911 (diff) |
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.
Diffstat (limited to '')
-rw-r--r-- | modules/programs/zplug.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/programs/zplug.nix b/modules/programs/zplug.nix index 0df395292a7..6cb5e98e313 100644 --- a/modules/programs/zplug.nix +++ b/modules/programs/zplug.nix @@ -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 ''; |