fzf Shell Completion and Key Bindings/Point completion at a custom source

Use a shell function or command to drive completion input.

Section: Fuzzy completion

Point completion at a custom source

bash
bash
_fzf_compgen_path() { fd --hidden --follow --exclude .git . "$1"; }
Explanation

Advanced shell users often override the default generators for better performance.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Fuzzy completion
Fuzzy-complete SSH hosts or paths
Use shell completion hooks supplied by fzf.
OpenIn sheettextsame section
Change how ALT-C lists directories
Use fd for faster directory discovery.
OpenIn sheetbash1 tag match
CTRL-T file picker
Trigger the built-in file picker from the command line.
CTRL-R history search
Search shell history interactively.
ALT-C directory jump
Fuzzy-pick a directory and change into it.
Customize CTRL-R history search
Add inline previews or change layout for history search.