Fzf

From NixOS Wiki
Revision as of 18:13, 21 August 2017 by imported>Makefu (import from nixos-users)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

fzf is a general-purpose command-line fuzzy finder.

Shell extensions

fzf provides additional key bindings (CTRL-T, CTRL-R, and ALT-C) for shells

First install fzf in your profile, then use one of the following methods:

Bash

To enable fzf in bash add the following line to .bashrc

if command -v fzf-share >/dev/null; then
  source "$(fzf-share)/key-bindings.bash"
fi

ZSH

To enable fzf in zsh add the following line to .zshrc

if [ -n "${commands[fzf-share]}" ]; then
  source "$(fzf-share)/key-bindings.zsh"
fi