From 6a7c15aa2668ce02f58d3708f17923db8eb58017 Mon Sep 17 00:00:00 2001 From: hau Date: Thu, 22 Oct 2020 16:10:10 +0700 Subject: [PATCH] improve fzf --- Applications/Essential/fzf.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Applications/Essential/fzf.md b/Applications/Essential/fzf.md index eaf61ba..453f409 100644 --- a/Applications/Essential/fzf.md +++ b/Applications/Essential/fzf.md @@ -2,9 +2,11 @@ Should install using git. +## Shell + Add to `~/.bashrc`, `~/.zshrc`: -```bash +```sh # Use fd instead of find export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" @@ -19,8 +21,14 @@ export FZF_DEFAULT_OPTS='--color light' | `CTRL-T` | search through files and directories | | `CTRL-R` | search though command-line history | +## Editor + Add to `~/.vimrc`, `~/.config/nvim/init.vim`: ```vim set rtp+=~/.fzf ``` + +| Command | Explain | +| ------- | ------------------------------------------------------------ | +| `:FZF` | search through files and directories under current directory |