improve fzf

main
hau 2020-10-22 16:10:10 +07:00
parent 88d31df5ec
commit 6a7c15aa26
1 changed files with 9 additions and 1 deletions

View File

@ -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 |