Skip to content

casonadams/fzf.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fzf.zsh

This plugin tries to find fzf based on where it's been installed, and enables its fuzzy auto-completion and key bindings.

This plugin will not install fzf for you. This needs to be done before using.

To use it, add fzf.zsh to the plugins in your zshrc file. The following is an example using zinit:

zinit wait lucid for \
  OMZL::key-bindings.zsh \
  OMZL::history.zsh \
  OMZP::git \
  casonadams/alacritty-shell \
  casonadams/fzf.zsh \
  ;

Settings

All these settings should go in your zshrc file, before the plugin is loaded.

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:

The plugin default settings lets one toggle the preview window using ?

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"

About

fzf helpers for zsh shells

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages