1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-24 19:21:43 +08:00
ohmyzsh/plugins/fzf
Elyézer Rezende fa780867d9
fix(fzf): consistently ignore .git directory in FZF_DEFAULT_COMMAND (#9421)
Be consistent and ignore contents of `.git` directory no matter how FZF_DEFAULT_COMMAND is set.
2020-11-09 12:09:10 +01:00
..
fzf.plugin.zsh fix(fzf): consistently ignore .git directory in FZF_DEFAULT_COMMAND (#9421) 2020-11-09 12:09:10 +01:00
README.md fzf: add check for OpenSUSE and OpenBSD packages (#9327) 2020-10-20 23:48:59 +02:00

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 commmand>'

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"