fzf Layout, UI, and Styling

Tune layout, borders, headers, sorting, and visual style for cleaner fuzzy-finder interfaces.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all

Layout options

Shape the finder UI for different terminal sizes and workflows.

Use a compact reverse layout

Display fzf in the lower portion of the terminal with the prompt at the top.

bashANYheightlayoutreverse
bash
fzf --height=40% --layout=reverse
Notes

A widely used default that feels natural in terminal workflows.

Use full-screen mode

Open fzf in a full-screen interactive view.

bashANYfullscreenheight
bash
fzf --height=100%
Notes

Best when you need maximum room for long lines or lots of results.

Add border and label

Decorate the UI with a border and title-like labels.

bashANYborderlabelprompt
bash
fzf --border --border-label=' Search ' --prompt='❯ '
Notes

Useful for polished shell functions and scripts.

Show inline info and a header

Tighten the top section while keeping guidance visible.

bashANYinfoheaderui
bash
fzf --info=inline --header='Type to filter, TAB to mark, Enter to accept'
Notes

Small usability upgrade for shared team scripts.

Preserve colored input

Interpret ANSI color codes from the input stream.

bashANYansicolors
bash
git -c color.status=always status --short | fzf --ansi
Notes

Required when upstream commands already colorize their output.

Style and theme

Tune colors, pointer symbols, and list presentation.

Set UI defaults globally

Store your preferred UI settings in FZF_DEFAULT_OPTS.

bashANYthemedefault-optscolor
bash
export FZF_DEFAULT_OPTS='--color=fg:#d0d0d0,bg:#101010,hl:#ffaf5f --pointer=▶ --marker=✓ --border'
Notes

Centralizes your theme and interface conventions.

Enable cyclic movement and sort

Make navigation wrap around and control sorting behavior.

bashANYcyclesorttac
bash
fzf --cycle --tac
Notes

Useful for logs, history, and reverse chronological lists.

Disable result sorting

Keep input order instead of sorting matches by score.

bashANYno-sorthistoryordering
bash
history | fzf --no-sort
Notes

Important when the original order already carries meaning.

Freeze top lines

Keep table headings pinned at the top while filtering the rest.

bashANYheader-linestables
bash
(printf 'PID CMD
'; ps -eo pid,comm) | fzf --header-lines=1
Notes

Excellent for tabular data so headings remain visible.

Recommended next

No recommendations yet.