Add oh-my-zsh and pull git repos at the top

This commit is contained in:
Roey Darwish Dror
2018-05-31 15:59:45 +03:00
parent 89b5dbe0e7
commit f2633ac4ee

View File

@@ -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");