From 821168a3d51aca851f11fe50583682cbaa8a210f Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Thu, 24 Sep 2020 13:21:09 +0800 Subject: [PATCH] Fix oh-my-fish (#524) --- src/steps/os/unix.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index 1ce6d3f3..38c23826 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -31,10 +31,15 @@ pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> { } pub fn run_oh_my_fish(ctx: &ExecutionContext) -> Result<()> { - let omf = require("omf")?; + let fish = require("fish")?; + ctx.base_dirs() + .home_dir() + .join(".local/share/omf/pkg/omf/functions/omf.fish") + .require()?; print_separator("oh-my-fish"); - ctx.run_type().execute(&omf).arg("update").check_run() + + ctx.run_type().execute(&fish).args(&["-c", "omf update"]).check_run() } pub fn run_brew(ctx: &ExecutionContext) -> Result<()> {