ajeetdsouza/zoxide · error · anyhow::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.
Solutions
- Install fzf using your package manager (e.g. 'apt install fzf', 'brew install fzf')
- Ensure fzf is on your PATH
When it happens
Trigger: Thrown at src/util.rs:115 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ajeetdsouza/zoxide@8a3f76da90 (2026-08-19).
Data as JSON: /api/errors/a70bcf8bd436cffa.
Report an issue: GitHub.
Appendix: source
Thrown at src/util.rs:115
{
self.0.env(key, val);
self
}
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self
where
I: IntoIterator<Item = (K, V)>,
K: AsRef<OsStr>,
V: AsRef<OsStr>,
{
self.0.envs(vars);
self
}
pub fn spawn(&mut self) -> Result<FzfChild> {
match self.0.spawn() {
Ok(child) => Ok(FzfChild(child)),
Err(e) if e.kind() == io::ErrorKind::NotFound => bail!(Self::ERR_FZF_NOT_FOUND),
Err(e) => Err(e).context("could not launch fzf"),
}
}
}
pub struct FzfChild(Child);
impl FzfChild {
pub fn write(&mut self, dir: &Dir, now: Epoch) -> Result<Option<String>> {
let handle = self.0.stdin.as_mut().unwrap();
match write!(handle, "{}\0", dir.display().with_score(now).with_separator('\t')) {
Ok(()) => Ok(None),
Err(e) if e.kind() == io::ErrorKind::BrokenPipe => self.wait().map(Some),
Err(e) => Err(e).context("could not write to fzf"),
}
}
pub fn wait(&mut self) -> Result<String> {View on GitHub (pinned to 8a3f76da90)