From f2633ac4eeaf6a3ef5b6126607f179e3489617c6 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Thu, 31 May 2018 15:59:45 +0300 Subject: [PATCH] Add oh-my-zsh and pull git repos at the top --- src/main.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 584a2bdf..3362988d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -77,10 +77,16 @@ fn run() -> Result<()> { if cfg!(unix) { collect_repo(home_path(".zshrc")); + collect_repo(home_path(".oh-my-zsh")); collect_repo(home_path(".tmux")); } } + for repo in git_repos { + terminal.print_seperator(format!("Pulling {}", repo)); + git.pull(repo)?; + } + if cfg!(unix) { if let Ok(zsh) = which("zsh") { if home_path(".zplug").exists() { @@ -97,10 +103,6 @@ fn run() -> Result<()> { } } - for repo in git_repos { - git.pull(repo)?; - } - if cfg!(target_os = "linux") { let sudo = which("sudo");