Add oh-my-zsh and pull git repos at the top
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -77,10 +77,16 @@ fn run() -> Result<()> {
|
|||||||
|
|
||||||
if cfg!(unix) {
|
if cfg!(unix) {
|
||||||
collect_repo(home_path(".zshrc"));
|
collect_repo(home_path(".zshrc"));
|
||||||
|
collect_repo(home_path(".oh-my-zsh"));
|
||||||
collect_repo(home_path(".tmux"));
|
collect_repo(home_path(".tmux"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for repo in git_repos {
|
||||||
|
terminal.print_seperator(format!("Pulling {}", repo));
|
||||||
|
git.pull(repo)?;
|
||||||
|
}
|
||||||
|
|
||||||
if cfg!(unix) {
|
if cfg!(unix) {
|
||||||
if let Ok(zsh) = which("zsh") {
|
if let Ok(zsh) = which("zsh") {
|
||||||
if home_path(".zplug").exists() {
|
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") {
|
if cfg!(target_os = "linux") {
|
||||||
let sudo = which("sudo");
|
let sudo = which("sudo");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user