fzf Shell Completion and Key Bindings/Customize CTRL-R history search

Add inline previews or change layout for history search.

Section: Shell key bindings

Customize CTRL-R history search

bash
bash
export FZF_CTRL_R_OPTS='--layout=reverse --height=60% --border'
Explanation

Lets you give history search a different feel than file selection.

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 Shell key bindings
CTRL-R history search
Search shell history interactively.
OpenIn sheettextsame section
CTRL-T file picker
Trigger the built-in file picker from the command line.
OpenIn sheettextsame section
ALT-C directory jump
Fuzzy-pick a directory and change into it.
OpenIn sheettextsame section
Change how ALT-C lists directories
Use fd for faster directory discovery.
OpenIn sheetbashsame section
Fuzzy-complete SSH hosts or paths
Use shell completion hooks supplied by fzf.
Point completion at a custom source
Use a shell function or command to drive completion input.