FZY(1)
π fzy β the fuzzy text selector menu for the terminal, bestie π
okay so this is the fzy(1) page from the General Commands Manual, and honestly? she's iconic. sit down, grab a boba, we're doing this. π§β¨
πΈ NAME πΈ
fzy β a fuzzy text selector menu for the terminal. that's it. that's the girl. π
β¨ SYNOPSIS β¨
fzy [OPTION]...
π¦ DESCRIPTION π¦
so fzy is a fuzzy text selector / file finder for the terminal, and she uses a search similar to that of TextMate or CmdT. iykyk.
here's the whole vibe:
fzyreads a list of newline-separated items fromstdinand displays them as a menu in the terminal. π- the moment you hit ENTER, the currently selected item gets printed to
stdout. slay. - typing text narrows the items down using fuzzy matching β¨
- and the results are sorted using heuristics for the best match. she's picking the winner for you. π
π OPTIONS π
-l,--lines=LINESβ how many lines of items to show. if you don't say anything, she defaults to 10 lines.-p,--prompt=PROMPTβ the input prompt (default:>).-s,--show-scoresβ show the scores for each item. numbers! for the girlies who like receipts. π-t,--tty=TTYβ use TTY instead of the default tty device (/dev/tty).-q,--query=QUERYβ use QUERY as the initial search query. pre-typed, pre-cute. π-e,--show-matches=QUERYβ non-interactive mode. print the matches in sorted order for QUERY tostdout. no menu, no waiting, just results.-0,--read-nullβ read input delimited by ASCII NUL characters. for the filename girlies with the weird names. π«Ά-i,--show-infoβ show the selection info line.-h,--helpβ usage help.-v,--versionβ usage help. (yes bestie, the original page says usage help here too, and i am not the one who's gonna lie to you about it. π)
π KEYS π
here's your keyboard cheat sheet, memorize it, put it on a sticky note:
- ENTER β print the selected item to
stdoutand exit. main character moment. π - Ctrl+c, Ctrl+g, Esc β exit with status 1, without making a selection. π no pick, no glory.
- Up Arrow, Ctrl+p, Ctrl+k β select the previous item.
- Down Arrow, Ctrl+n, Ctrl+j β select the next item.
- Tab β replace the current search string with the selected item.
- Backspace, Ctrl+h β delete the character before the cursor.
- Ctrl+w β delete the word before the cursor.
- Ctrl+u β delete the entire line.
π USAGE EXAMPLES π
these are the moments where she ate, fr fr:
ls | fzy
present a menu of items in the current directory. starter pack. β
ls | fzy -l 25
same as above, but show 25 lines of items. more to look at, more to love. π
vi $(find -type f | fzy)
list files under the current directory and open the one selected in vi.
cd $(find -type d | fzy)
present all directories under current path, and change to the one selected.
ps aux | fzy | awk '{ print $2 }' | xargs kill
list running processes, kill the selected process. π dramatic but effective.
git checkout $(git branch | cut -c 3- | fzy)
same as above, but switching git branches. π¦
π AUTHOR π
John Hawthorn <john.hawthorn@gmail.com>
no cap: every flag, every key, every example above is exactly as the original says. i just made it cute. π«Ά
and that's the whole page, bestie!! this is fzy 1.1, dated 2025-07-12, and it lives in the FZY(1) manual. go fuzzy-match something and feel like the main character you are. β¨πππΈπ¦π
π¦ where this page comes from
- alpine 3.24: fzy-doc 1.1-r1 Β· MIT
- arch rolling: fzy 1.1-1 Β· MIT
- nixos 26.05: fzy 1.1
- nixpkgs unstable: fzy 1.1
- ubuntu questing: fzy 1.1-1
- ubuntu resolute: fzy 1.1-1build1 Β· MIT
- ubuntu stonking: fzy 1.1-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms