Gem

fzf

A fuzzy finder for anything you can list: files, shell history, git branches, processes.

Would you recommend fzf?

No votes yet. Tried it? Be the first to say.

One vote per person. No account needed.

Overview

fzf reads a list of lines on stdin, lets you narrow it down by typing a few loose characters, and prints what you pick. On its own that sounds small. Wired into your shell it becomes Ctrl+R for history search, Ctrl+T to paste a file path and Alt+C to jump into a directory, and it slots into any script that needs the user to pick something.

Instead of
Scrolling through `history | grep`, typing long paths by hand, and one-off select menus in shell scripts
Reach for it when
You spend time hunting for a command you ran last week, a file deep in a repo, or a branch name you half remember.

Try it in a few minutes

Terminal
brew install fzf   # or: winget install fzf / apt install fzf
eval "$(fzf --bash)"   # zsh: source <(fzf --zsh)
# now press Ctrl+R, or try: git branch | fzf | xargs git switch

Related tools

Other tools that share topics with fzf.

fd

github.com
Gem

A simple, fast, user-friendly alternative to find.

Instead of find . -name "*.ts" -not -path "*/node_modules/*"

1 recommend

zoxide

github.com
Gem

A smarter cd that learns the directories you use most.

Instead of cd ../../.. and long path tab-completion

Atuin

atuin.sh
Gem

Searchable shell history with context, and optional encrypted sync between machines.

Instead of Ctrl-R and a ~/.bash_history that loses commands