fzf-zsh-plugin

May 30, 2026 ยท View on GitHub

License CircleCI Code Climate Issue Count GitHub stars

Table of Contents

ZSH plugin to enable using fzf to search command history and for files.

This will automagically install fzf into your home directory if it isn't already there, and bind ^R to an fzf-powered search of your command history.

Used by the zsh-quickstart-kit to make the default setup have a more 'batteries included' feel.

Yes, there is a plugin baked into oh-my-zsh, this allows easy fzf integration for other frameworks and shells, and adds some helper scripts.

Note - yes, these scripts could all be ZSH functions instead of scripts in the bin directory. We prefer to use standalone scripts so that non-ZSH users can also use the repository by adding its bin directory to their $PATH.

Contents

NameDescriptionAuthor
apt-fzf-searchFilter apt-cache search results through fzflinuxuprising.com
asdf-fzf-installInstall one or more versions of the specified language with fzf and installs your selection with asdffzf wiki
asdf-fzf-removeRemove one or more versions of the specified language with fzffzf wiki
asdf-fzf-uninstallSelect one or more versions of the specified language with fzf and uninstalls your selection with asdffzf wiki
chrome-bookmark-browserRummages through your Chrome bookmarks with fzf and opens the selected bookmark(s) in your default browserfzf wiki
chrome-historyBrowse Chrome history with fzf and open the selected entry
d-attachUses fzf to select docker containers to start and attach to.From the fzf wiki
d-image-rmUses fzf to select docker containers to start and attach to.From the fzf wiki
d-rmUses fzf to select docker containers to remove.From the fzf wiki
d-stop-containerUses fzf to select a docker container to stop.From the fzf wiki
fifUses fzf and rg to find a term in filesBoost Your Command Line Productivity With Fuzzy Finder
fzf-brew-cask-installUses fzf to select programs to install (or show the home page) based on the output of brew cask searchBoost Your Command Line Productivity With Fuzzy Finder
fzf-brew-cask-uninstallUses fzf to select brew-installed programs to delete (or show the home page)Boost Your Command Line Productivity With Fuzzy Finder
fzf-brew-installUses fzf to select programs to install based on the output of brew searchBoost Your Command Line Productivity With Fuzzy Finder
fzf-brew-uninstallUses fzf to select brew-installed programs to deleteBoost Your Command Line Productivity With Fuzzy Finder
fzf-brew-updateUses fzf to select brew-installed programs to updateBoost Your Command Line Productivity With Fuzzy Finder
fzf-find-editUses fzf to select files (displaying previews) to edit with $EDITORBoost Your Command Line Productivity With Fuzzy Finder
fzf-grep-editUses fzf to select files (displaying previews) that contain a search term to edit with $EDITORBoost Your Command Line Productivity With Fuzzy Finder
fzf-killUses fzf to select processes to killBoost Your Command Line Productivity With Fuzzy Finder
tmUses fzf to search for a tmux session or create one if no matches.From the fzf wiki
tmux-killUses fzf to select a tmux session and kills it.From the fzf wiki
tmux-searchUses fzf to select a tmux session. Skips fzf if there's only one match, exits if no match.From the fzf wiki
vagrant-box-searchUses fzf to select a vagrant box and connect to it with ssh.From the fzf wiki

Installing

You probably want this plugin to be last in your framework's list of plugins to load. It dynamically generates $FZF_DEFAULT_OPT and $FZF_DEFAULT_COMMAND based on whether it sees things like rg and bat in your $PATH, so it should come after other plugins have had a chance to extend $PATH.

Zgenom

add zgenom load unixorn/fzf-zsh-plugin to your .zshrc with your other load commands.

Antigen

add antigen bundle unixorn/fzf-zsh-plugin to your .zshrc

Oh-My-Zsh

  1. cd ~/.oh-my-zsh/custom/plugins
  2. git clone git@github.com:unixorn/fzf-zsh-plugin.git fzf-zsh
  3. Add tumult to your plugin list - edit ~.zshrc and change plugins=(...) to plugins=(... fzf-zsh)

Without using a framework

  1. git clone this repository, then add its bin directory to your $PATH.
  2. Add source /path/to/repository/checkout/fzf-zsh-plugin.plugin.zsh to your .zshrc file.

The scripts in this collection don't actually require you to be using ZSH as your login shell, they're being distributed as an oh-my-zsh-compatible plugin because it's convenient for me.