Extracted fzf plugin from ohmyzsh repository and packaged so it can be used by my ZSH plugin manager.
This plugin tries to find junegunn's fzf based on where it's been installed, and enables its fuzzy auto-completion and key bindings.
To use it, add fzf
to the plugins array in your zshrc file:
use "Atlas34/fzf-plugin"
All these settings should go in your zshrc file, before Oh My Zsh is sourced.
Set to fzf installation directory path:
export FZF_BASE=/path/to/fzf/install/dir
Set default command to use when input is tty:
export FZF_DEFAULT_COMMAND='<your fzf default command>'
If not set, the plugin will try to set it to these, in the order in which they're found:
Set whether to load fzf auto-completion:
DISABLE_FZF_AUTO_COMPLETION="true"
Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C):
DISABLE_FZF_KEY_BINDINGS="true"