- Shell integration scripts are now embedded in the fzf binary. This simplifies the distribution, and the users are less likely to have problems caused by using incompatible scripts and binaries.
- bash
# Set up fzf key bindings and fuzzy completion eval "$(fzf --bash)"
- zsh
# Set up fzf key bindings and fuzzy completion eval "$(fzf --zsh)"
- fish
# Set up fzf key bindings fzf --fish | source
- bash
- Added options for customizing the behavior of the built-in walker
Option Description Default --walker=OPTS
Walker options ( [file][,dir][,follow][,hidden]
)file,follow,hidden
--walker-root=DIR
Root directory from which to start walker .
--walker-skip=DIRS
Comma-separated list of directory names to skip .git,node_modules
- Examples
# Built-in walker is only used by standalone fzf when $FZF_DEFAULT_COMMAND is not set unset FZF_DEFAULT_COMMAND fzf # default: --walker=file,follow,hidden --walker-root=. --walker-skip=.git,node_modules fzf --walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target # Walker options in $FZF_DEFAULT_OPTS export FZF_DEFAULT_OPTS="--walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target" fzf # Reading from STDIN; --walker is ignored seq 100 | fzf --walker=dir # Reading from $FZF_DEFAULT_COMMAND; --walker is ignored export FZF_DEFAULT_COMMAND='seq 100' fzf --walker=dir
- Examples
- Shell integration scripts have been updated to use the built-in walker with these new options and they are now much faster out of the box.