improve fzf
parent
88d31df5ec
commit
6a7c15aa26
|
@ -2,9 +2,11 @@
|
||||||
|
|
||||||
Should install using git.
|
Should install using git.
|
||||||
|
|
||||||
|
## Shell
|
||||||
|
|
||||||
Add to `~/.bashrc`, `~/.zshrc`:
|
Add to `~/.bashrc`, `~/.zshrc`:
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
# Use fd instead of find
|
# Use fd instead of find
|
||||||
export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git'
|
export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git'
|
||||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
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-T` | search through files and directories |
|
||||||
| `CTRL-R` | search though command-line history |
|
| `CTRL-R` | search though command-line history |
|
||||||
|
|
||||||
|
## Editor
|
||||||
|
|
||||||
Add to `~/.vimrc`, `~/.config/nvim/init.vim`:
|
Add to `~/.vimrc`, `~/.config/nvim/init.vim`:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
set rtp+=~/.fzf
|
set rtp+=~/.fzf
|
||||||
```
|
```
|
||||||
|
|
||||||
|
| Command | Explain |
|
||||||
|
| ------- | ------------------------------------------------------------ |
|
||||||
|
| `:FZF` | search through files and directories under current directory |
|
||||||
|
|
Loading…
Reference in New Issue