revert: revert 614 to remove the -p option (#713)

This commit is contained in:
SteveLauC
2024-02-24 11:26:41 +08:00
committed by GitHub
parent a43b03d3db
commit c6e3f0ae0a

View File

@@ -124,10 +124,7 @@ pub fn run_zinit(ctx: &ExecutionContext) -> Result<()> {
print_separator("zinit");
let cmd = format!(
"source {} && zinit self-update && zinit update --all -p",
zshrc.display(),
);
let cmd = format!("source {} && zinit self-update && zinit update --all", zshrc.display());
ctx.run_type()
.execute(zsh)
.args(["-i", "-c", cmd.as_str()])
@@ -142,7 +139,7 @@ pub fn run_zi(ctx: &ExecutionContext) -> Result<()> {
print_separator("zi");
let cmd = format!("source {} && zi self-update && zi update --all -p", zshrc.display(),);
let cmd = format!("source {} && zi self-update && zi update --all", zshrc.display());
ctx.run_type().execute(zsh).args(["-i", "-c", &cmd]).status_checked()
}