fzf: Installation

Installation #

Using Homebrew #

Homebrew is the recommended way to install fzf, as it provides the most recent version of fzf.

brew install fzf

Using other package managers #

Linux #

Click to expand
Package ManagerLinux DistributionCommand
APKAlpine Linuxsudo apk add fzf
APTDebian 9+/Ubuntu 19.10+sudo apt install fzf
Condaconda install -c conda-forge fzf
DNFFedorasudo dnf install fzf
NixNixOS, etc.nix-env -iA nixpkgs.fzf
PacmanArch Linuxsudo pacman -S fzf
pkgFreeBSDpkg install fzf
pkginNetBSDpkgin install fzf
pkg_addOpenBSDpkg_add fzf
PortageGentooemerge --ask app-shells/fzf
Spackspack install fzf
XBPSVoid Linuxsudo xbps-install -S fzf
ZypperopenSUSEsudo zypper install fzf

Windows #

Click to expand
Package managerCommand
Chocolateychoco install fzf
Scoopscoop install fzf
Wingetwinget install fzf
MSYS2 (pacman)pacman -S $MINGW_PACKAGE_PREFIX-fzf

Getting the latest binary #

While fzf is available on all major package managers, they may provide an old version of fzf. If that’s the case, you can download the latest binary from the releases page and put it in your $PATH.

Setting up shell integration #

fzf comes with shell integration scripts that set up useful key bindings and fuzzy completion so that fzf is still useful even if you’re not well versed in shell scripting.

  • bash (~/.bashrc)
    eval "$(fzf --bash)"
    
  • zsh (~/.zshrc)
    source <(fzf --zsh)
    
  • fish (~/.config/fish/config.fish)
    fzf --fish | source
    
Last modified: Jun 2, 2024
Copyright © 2024 Junegunn Choi