Detect fisher in a custom path (fix #878)
This commit is contained in:
@@ -69,10 +69,13 @@ impl BrewVariant {
|
|||||||
|
|
||||||
pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
|
pub fn run_fisher(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
|
||||||
let fish = require("fish")?;
|
let fish = require("fish")?;
|
||||||
|
|
||||||
|
if env::var("fisher_path").is_err() {
|
||||||
base_dirs
|
base_dirs
|
||||||
.home_dir()
|
.home_dir()
|
||||||
.join(".config/fish/functions/fisher.fish")
|
.join(".config/fish/functions/fisher.fish")
|
||||||
.require()?;
|
.require()?;
|
||||||
|
}
|
||||||
|
|
||||||
print_separator("Fisher");
|
print_separator("Fisher");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user