diff --git a/src/main.rs b/src/main.rs index eceadce5..e6bcff1c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -240,6 +240,7 @@ fn run() -> Result<()> { runner.execute(Step::Shell, "zinit", || zsh::run_zinit(&base_dirs, run_type))?; runner.execute(Step::Shell, "oh-my-zsh", || zsh::run_oh_my_zsh(&ctx))?; runner.execute(Step::Shell, "fisher", || unix::run_fisher(&base_dirs, run_type))?; + runner.execute(Step::Shell, "oh-my-fish", || unix::run_oh_my_fish(&ctx))?; runner.execute(Step::Tmux, "tmux", || tmux::run_tpm(&base_dirs, run_type))?; runner.execute(Step::Tldr, "TLDR", || unix::run_tldr(run_type))?; runner.execute(Step::Pearl, "pearl", || unix::run_pearl(run_type))?; diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index d435930b..1ce6d3f3 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -30,6 +30,13 @@ pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> { run_type.execute(&fish).args(&["-c", "fisher"]).check_run() } +pub fn run_oh_my_fish(ctx: &ExecutionContext) -> Result<()> { + let omf = require("omf")?; + + print_separator("oh-my-fish"); + ctx.run_type().execute(&omf).arg("update").check_run() +} + pub fn run_brew(ctx: &ExecutionContext) -> Result<()> { let brew = require("brew")?; print_separator("Brew");