ohmyzsh/plugins/fzf
Carlo Sala a1c54e03f9
feat(fzf): add `skip-dpkg` flag to avoid some regressions
See https://github.com/ohmyzsh/ohmyzsh/pull/11122#issuecomment-1399607430
2023-01-22 23:36:57 +01:00
..
README.md feat(fzf): add `skip-dpkg` flag to avoid some regressions 2023-01-22 23:36:57 +01:00
fzf.plugin.zsh feat(fzf): add `skip-dpkg` flag to avoid some regressions 2023-01-22 23:36:57 +01:00

README.md

fzf

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:

plugins=(... fzf)

Settings

All these settings should go in your zshrc file, before Oh My Zsh is sourced.

FZF_BASE

Set to fzf installation directory path:

export FZF_BASE=/path/to/fzf/install/dir

FZF_DEFAULT_COMMAND

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:

DISABLE_FZF_AUTO_COMPLETION

Set whether to load fzf auto-completion:

DISABLE_FZF_AUTO_COMPLETION="true"

DISABLE_FZF_KEY_BINDINGS

Set whether to disable key bindings (CTRL-T, CTRL-R, ALT-C):

DISABLE_FZF_KEY_BINDINGS="true"

Skip dpkg loading

If you have dpkg available in your $PATH but you don't want to load fzf from there, and facing some issues, you can define this option before loading oh-my-zsh in order to skip that loading:

zstyle ':omz:plugins:fzf' skip-dpkg yes