From 810315b0e2a744b34550e4434d61a63c00b1b2c1 Mon Sep 17 00:00:00 2001 From: DomGlusk <64805993+domglusk@users.noreply.github.com> Date: Tue, 21 Nov 2023 21:18:41 -0600 Subject: [PATCH] Make zinit and zi use parallel updates (#614) * Update zsh.rs to make zinit and zi use parallel * run cargo fmt --------- Co-authored-by: Dominic Gluskin --- src/steps/zsh.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/steps/zsh.rs b/src/steps/zsh.rs index 7f7078fd..3b5abf99 100644 --- a/src/steps/zsh.rs +++ b/src/steps/zsh.rs @@ -122,7 +122,10 @@ pub fn run_zinit(ctx: &ExecutionContext) -> Result<()> { print_separator("zinit"); - let cmd = format!("source {} && zinit self-update && zinit update --all", zshrc.display(),); + let cmd = format!( + "source {} && zinit self-update && zinit update --all -p", + zshrc.display(), + ); ctx.run_type() .execute(zsh) .args(["-i", "-c", cmd.as_str()]) @@ -137,7 +140,7 @@ pub fn run_zi(ctx: &ExecutionContext) -> Result<()> { print_separator("zi"); - let cmd = format!("source {} && zi self-update && zi update --all", zshrc.display(),); + let cmd = format!("source {} && zi self-update && zi update --all -p", zshrc.display(),); ctx.run_type().execute(zsh).args(["-i", "-c", &cmd]).status_checked() }