ajeetdsouza/zoxide · error
could not find fzf, is it installed?
Error message
could not find fzf, is it installed?
What it means
Error "could not find fzf, is it installed?" thrown in ajeetdsouza/zoxide.
Source
Thrown at src/util.rs:34
pub const SECOND: Epoch = 1;
pub const MINUTE: Epoch = 60 * SECOND;
pub const HOUR: Epoch = 60 * MINUTE;
pub const DAY: Epoch = 24 * HOUR;
pub const WEEK: Epoch = 7 * DAY;
pub const MONTH: Epoch = 30 * DAY;
pub struct Fzf(Command);
impl Fzf {
const ERR_FZF_NOT_FOUND: &'static str = "could not find fzf, is it installed?";
pub fn new() -> Result<Self> {
// On Windows, CreateProcess implicitly searches the current working
// directory for the executable, which is a potential security issue.
// Instead, we resolve the path to the executable and then pass it to
// CreateProcess.
#[cfg(windows)]
let program = which::which("fzf.exe").map_err(|_| anyhow!(Self::ERR_FZF_NOT_FOUND))?;
#[cfg(not(windows))]
let program = "fzf";
// TODO: check version of fzf here.
let mut cmd = Command::new(program);
cmd.args([
// Search mode
"--delimiter=\t",
"--nth=2",
// Scripting
"--read0",
])
.stdin(Stdio::piped())
.stdout(Stdio::piped());
Ok(Fzf(cmd))
}View on GitHub (pinned to ee594e6906)
When it happens
Trigger: Thrown at src/util.rs:34 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ajeetdsouza/zoxide@ee594e6906 (2026-08-16).
Data as JSON: /api/errors/a70bcf8bd436cffa.
Report an issue: GitHub.