Add an env var to change the fuzzy finder

This commit is contained in:
Alexis Bourget 2020-11-23 14:14:45 +01:00
parent e6e67b16bc
commit 6fb0fab781
1 changed files with 7 additions and 0 deletions

View File

@ -68,3 +68,10 @@ pub fn zo_resolve_symlinks() -> bool {
None => false, None => false,
} }
} }
pub fn zo_fuzzy_finder_cmd() -> &'static str {
match env::var_os("_ZO_FUZZY_FINDER_CMD") {
Some(sk) if sk == "skim" => "skim",
_ => "fzf",
}
}