Update oh-my-zsh plugins (fix #360) (#363)

This commit is contained in:
Roey Darwish Dror
2020-03-08 21:38:49 +02:00
committed by GitHub
parent ce7af763bb
commit 6692b74850
4 changed files with 65 additions and 22 deletions

View File

@@ -65,10 +65,10 @@ fn run() -> Result<()> {
let run_type = executor::RunType::new(config.dry_run());
#[cfg(unix)]
let ctx = execution_context::ExecutionContext::new(run_type, &sudo, &config, &base_dirs);
let ctx = execution_context::ExecutionContext::new(run_type, &sudo, &git, &config, &base_dirs);
#[cfg(not(unix))]
let ctx = execution_context::ExecutionContext::new(run_type, &config, &base_dirs);
let ctx = execution_context::ExecutionContext::new(run_type, &git, &config, &base_dirs);
let mut runner = runner::Runner::new(&ctx);
@@ -212,9 +212,7 @@ fn run() -> Result<()> {
git_repos.glob_insert(git_repo);
}
}
runner.execute("Git repositories", || {
git.multi_pull(&git_repos, run_type, config.git_arguments())
})?;
runner.execute("Git repositories", || git.multi_pull_step(&git_repos, &ctx))?;
}
if should_run_powershell {
@@ -229,7 +227,7 @@ fn run() -> Result<()> {
runner.execute("antigen", || zsh::run_antigen(&base_dirs, run_type))?;
runner.execute("zplug", || zsh::run_zplug(&base_dirs, run_type))?;
runner.execute("zinit", || zsh::run_zinit(&base_dirs, run_type))?;
runner.execute("oh-my-zsh", || zsh::run_oh_my_zsh(&base_dirs, run_type))?;
runner.execute("oh-my-zsh", || zsh::run_oh_my_zsh(&ctx))?;
runner.execute("fisher", || unix::run_fisher(&base_dirs, run_type))?;
runner.execute("tmux", || tmux::run_tpm(&base_dirs, run_type))?;
}