Add oh-my-fish (fix #513) (#514)

This commit is contained in:
Roey Darwish Dror
2020-09-03 09:32:45 +03:00
committed by GitHub
parent 10f3d929e8
commit ce06b6e307
2 changed files with 8 additions and 0 deletions

View File

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

View File

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