fzf
fzf is a general-purpose command-line fuzzy finder.
Table of Contents
vim-plug
Manage fzf from inside vim with vim-plug plugin manager as it gives the latest binaries, options and also portable, not tied to any OS distribution.
" Add this to ~/.vimrc for vim-plug plugin manager
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Update shells
Zsh
# add fzf in vim-plug path to PATH
path=("$HOME/.vim/plugged/fzf/bin" $path)
# source fzf auto completions
if [ -f ~/.vim/plugged/fzf/shell/completion.zsh ]; then
source ~/.vim/plugged/fzf/shell/completion.zsh
fi
# source fzf key bindings
if [ -f ~/.vim/plugged/fzf/shell/key-bindings.zsh ]; then
source ~/.vim/plugged/fzf/shell/key-bindings.zsh
fi
Bash
# add fzf in vim-plug path to PATH
export PATH="$HOME/.vim/plugged/fzf/bin:$PATH"
# source fzf auto completions
if [ -f ~/.vim/plugged/fzf/shell/completion.bash ]; then
source ~/.vim/plugged/fzf/shell/completion.bash
fi
# source fzf key bindings
if [ -f ~/.vim/plugged/fzf/shell/key-bindings.bash ]; then
source ~/.vim/plugged/fzf/shell/key-bindings.bash
fi