From 5de33a91d1fc96bfccdd4bcd4b0a53d230a6de19 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Sat, 9 Apr 2022 15:35:02 +0300 Subject: [PATCH] Detect fisher in a custom path (fix #878) --- src/steps/os/unix.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/steps/os/unix.rs b/src/steps/os/unix.rs index e36150fa..a062033b 100644 --- a/src/steps/os/unix.rs +++ b/src/steps/os/unix.rs @@ -69,10 +69,13 @@ impl BrewVariant { pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> { let fish = require("fish")?; - base_dirs - .home_dir() - .join(".config/fish/functions/fisher.fish") - .require()?; + + if env::var("fisher_path").is_err() { + base_dirs + .home_dir() + .join(".config/fish/functions/fisher.fish") + .require()?; + } print_separator("Fisher");