2018-09-04 22:25:45 +02:00
|
|
|
# fzf
|
|
|
|
|
|
|
|
This plugin enables [junegunn's fzf](https://github.com/junegunn/fzf) fuzzy auto-completion and key bindings
|
|
|
|
|
2020-09-04 22:13:45 +02:00
|
|
|
To use it, add `fzf` to the plugins array in your zshrc file:
|
|
|
|
```zsh
|
|
|
|
plugins=(... fzf)
|
|
|
|
```
|
|
|
|
|
|
|
|
## Settings
|
|
|
|
|
|
|
|
Add these before the `plugins=()` line in your zshrc file:
|
|
|
|
|
2018-09-04 22:25:45 +02:00
|
|
|
```zsh
|
|
|
|
# Set fzf installation directory path
|
2020-09-04 22:13:45 +02:00
|
|
|
# export FZF_BASE=/path/to/fzf/install/dir
|
|
|
|
|
|
|
|
# Uncomment to set the FZF_DEFAULT_COMMAND
|
|
|
|
# export FZF_DEFAULT_COMMAND='<your fzf default commmand>'
|
2018-09-04 22:25:45 +02:00
|
|
|
|
|
|
|
# Uncomment the following line to disable fuzzy completion
|
2020-09-04 22:13:45 +02:00
|
|
|
# DISABLE_FZF_AUTO_COMPLETION="true"
|
2018-09-04 22:25:45 +02:00
|
|
|
|
|
|
|
# Uncomment the following line to disable key bindings (CTRL-T, CTRL-R, ALT-C)
|
2020-09-04 22:13:45 +02:00
|
|
|
# DISABLE_FZF_KEY_BINDINGS="true"
|
2018-09-04 22:25:45 +02:00
|
|
|
```
|
2020-09-04 22:13:45 +02:00
|
|
|
|
|
|
|
| Setting | Example value | Description |
|
|
|
|
|-----------------------------|----------------------------|-------------------------------------------------------------|
|
|
|
|
| FZF_BASE | `/path/to/fzf/install/dir` | Set fzf installation directory path (**export**) |
|
|
|
|
| FZF_DEFAULT_COMMAND | `fd --type f` | Set default command to use when input is tty (**export**) |
|
|
|
|
| DISABLE_FZF_AUTO_COMPLETION | `true` | Set whether to load fzf auto-completion |
|
|
|
|
| DISABLE_FZF_KEY_BINDINGS | `true` | Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C) |
|