Detect fisher in a custom path (fix #878)

This commit is contained in:
Roey Darwish Dror
2022-04-09 15:35:02 +03:00
parent e7485de501
commit 5de33a91d1

View File

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