Skip to content

How to uninstall fzf on a Mac without breaking your shell

fzf's key bindings are loaded from ~/.fzf.zsh by a line in .zshrc. Remove fzf first and every new Terminal window errors. The right order, measured.

3 min read

How do I uninstall fzf on a Mac?

$(brew --prefix)/opt/fzf/uninstall
brew uninstall fzf

fzf's own uninstall script deletes ~/.fzf.zsh and ~/.fzf.bash and removes the line from your shell profiles. Run it while fzf is still installed; it ships with the formula and goes when Homebrew removes it.

What does fzf leave behind?

WhereSize hereWhat it is
Homebrew fzf 0.67.04.7 MBThe program
~/.fzf.zsh156 bytesLoads fzf's key bindings in zsh
~/.fzf.bash157 bytesThe same for bash
~/.zshrc1 lineSources ~/.fzf.zsh

Terminal says .fzf.zsh: no such file or directory

fzf was removed and the line loading its bindings was not. Open ~/.zshrc and delete the line that mentions .fzf.zsh. If you used Oh My Zsh's fzf plugin instead, remove fzf from the plugins list.

Find what is left in one look

Free Mac shows hidden files and folders in your home folder on the Storage map and moves what you pick to the Trash. For other shell setups, see uninstalling Oh My Zsh and terminal apps taking up space.

Related: uninstall CMake and uninstall pnpm.

Common questions

How do I remove fzf key bindings?

Run fzf's uninstall script, $(brew --prefix)/opt/fzf/uninstall, before removing fzf. It deletes ~/.fzf.zsh and the line that loads it.

Why does my terminal say .fzf.zsh not found?

A line in ~/.zshrc still loads fzf's bindings after fzf was removed. Delete that line.

Does uninstalling fzf affect my shell history?

No. fzf only searches your history; it does not store it.

Read next