Upgrade oh-my-zsh (fix #215)
This commit is contained in:
@@ -224,7 +224,6 @@ fn run() -> Result<(), Error> {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
git_repos.insert(base_dirs.home_dir().join(".zshrc"));
|
||||
git_repos.insert(base_dirs.home_dir().join(".oh-my-zsh"));
|
||||
git_repos.insert(base_dirs.home_dir().join(".tmux"));
|
||||
git_repos.insert(base_dirs.home_dir().join(".config/fish"));
|
||||
git_repos.insert(base_dirs.config_dir().join("openbox"));
|
||||
@@ -267,6 +266,12 @@ fn run() -> Result<(), Error> {
|
||||
|| unix::run_zplug(&base_dirs, run_type),
|
||||
config.no_retry(),
|
||||
)?;
|
||||
execute(
|
||||
&mut report,
|
||||
"oh-my-zsh",
|
||||
|| unix::run_oh_my_zsh(run_type),
|
||||
config.no_retry(),
|
||||
)?;
|
||||
execute(
|
||||
&mut report,
|
||||
"fisher",
|
||||
|
||||
@@ -26,6 +26,14 @@ pub fn run_zplug(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> {
|
||||
run_type.execute(zsh).args(&["-c", cmd.as_str()]).check_run()
|
||||
}
|
||||
|
||||
pub fn run_oh_my_zsh(run_type: RunType) -> Result<(), Error> {
|
||||
let upgrade = require("upgrade_oh_my_zsh")?;
|
||||
|
||||
print_separator("oh-my-zsh");
|
||||
|
||||
run_type.execute(upgrade).check_run()
|
||||
}
|
||||
|
||||
pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<(), Error> {
|
||||
let fish = require("fish")?;
|
||||
base_dirs
|
||||
|
||||
Reference in New Issue
Block a user