fzf

fzf

Fast, general-purpose command-line fuzzy finder written in Go for searching files, shell history, processes, and Git commits.

★ 84.7K

Why fzf belongs in every developer terminal

Typing long file paths from memory or pressing the up arrow thirty times to find yesterday’s Docker command wastes hours every month. fzf fixes that habit in seconds. Written in Go by Junegunn Choi under the MIT license, this interactive command-line fuzzy finder has 84.7K GitHub stars and 3,500 forks because it turns any list of text into a live, searchable menu.

What makes fzf so fast in daily work

  • It filters millions of lines in milliseconds as you type, using partial characters, exact quotes, or prefix and suffix tokens like ^src and .go$.
  • Built-in shell bindings for Bash, Zsh, Fish, and Nushell upgrade Ctrl-R command history search, Ctrl-T file picking, and Alt-C directory jumps right away.
  • Split preview windows run external tools like bat, git diff, or terminal image protocols while you scroll through matches.
  • The reload and become actions let you wire interactive ripgrep launchers, Kubernetes pod selectors, and Vim or Neovim pickers without writing wrapper scripts.

Trade-offs to know before you start

Out of the box, fzf uses standard file traversal unless you set FZF_DEFAULT_COMMAND to a tool like fd or ripgrep so it skips .git and node_modules folders. Also avoid putting a file-only --preview command in your global FZF_DEFAULT_OPTS, or non-file pipes like ps -ef | fzf will throw errors.

Quick takeaway

Install fzf, enable its shell key bindings, and try pressing Ctrl-R once. You will never go back to default shell history search.

Ready to try fzf?

Experience the full capabilities on their official website.

Visit Official Website