brew install fzfHomebrew is the most common install path on macOS and also works on Linux.
Install fzf, enable shell integration, and configure global defaults for day-to-day use.
Install fzf, check the version, and inspect built-in docs.
brew install fzfHomebrew is the most common install path on macOS and also works on Linux.
sudo apt-get install -y fzfFastest way to get started on Debian-based systems, though package versions can lag behind upstream.
sudo pacman -S fzfSimple install path on Arch and Arch-based systems.
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/installThe install script can add shell key bindings and completion for supported shells.
fzf --versionUseful for troubleshooting option availability and verifying an upgrade.
fzf --manRecent versions embed the manual directly in the binary, which is convenient on minimal systems.
Enable fuzzy completion and common shell key bindings.
[ -f ~/.fzf.zsh ] && source ~/.fzf.zshTypical setup when installed via the upstream installer.
[ -f ~/.fzf.bash ] && source ~/.fzf.bashAdds key bindings such as CTRL-T and CTRL-R in bash.
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'A common optimization because fd is faster and easier to tune than raw find.
export FZF_DEFAULT_OPTS='--height=40% --layout=reverse --border --info=inline'Handy for keeping your preferred layout and UI style consistent.
export FZF_CTRL_T_OPTS='--preview "bat --style=numbers --color=always --line-range :200 {}"'Adds a preview window for the built-in file selection binding.