til/Applications/Essential/fzf.md

867 B

fzf

Should install using git.

Shell

Add to ~/.bashrc, ~/.zshrc:

# Use fd instead of find
export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"

# Colorscheme
export FZF_DEFAULT_OPTS='--color dark'
export FZF_DEFAULT_OPTS='--color light'
Shorcut Explain
CTRL-T search through files and directories
CTRL-R search though command-line history

Editor

Add to ~/.vimrc, ~/.config/nvim/init.vim:

set rtp+=~/.fzf
Command Explain
:FZF search through files and directories under current directory