FISH_INDENT(1)
β¨ NAME β¨
fish_indent β the indenter and prettifier, aka your code's personal glam squad π
This page is from the fish-shell manual, bestie, and it's literally all about making your fish code look snatched.
πΈ SYNOPSIS πΈ
fish_indent [OPTIONS] [FILE ...]
π DESCRIPTION π
Okay so fish_indent is the tool you call when your fish code needs a glow-up. It reads commands from standard input or from the filenames you hand it, and then it outputs them to standard output or to a file you specify β but only if you pass -w, iykyk.
Here's the full menu of options, no cap:
-wor--writeβ Indents a given file and then immediately writes the result right back into that same file. Iconic, in-place, no extra copies. π«Ά-ior--no-indentβ Doesn't indent anything at all; it only reformats so you get one job per line. Lowkey a vibe reset and nothing more.--only-indentβ No reformatting allowed, bestie β it only indents each line.--only-unindentβ Same energy, opposite direction: no reformatting, it only unindents each line.-cor--checkβ Doesn't indent at all; it just returns0if the code is already indented exactly the wayfish_indentwould do it, and otherwise returns the number of failed files. Also, if it's not reading from standard input, it prints the names of the failed files. Basically a vibe check for your formatting. π₯-vor--versionβ Displays the current fish version, then dips out. Periodt.--ansiβ Colorizes the output using ANSI escape sequences, pulling colors from the environment (likefish_color_command, which is an envvar). Pretty privilege for your terminal π--htmlβ Outputs HTML instead, which supports syntax highlighting if the appropriate CSS is defined. The CSS class names are the same as the variable names, likefish_color_command. Slay in the browser too β¨--dump-parse-treeβ Dumps info about the parsed statements to standard error. Ngl this is probably only interesting to people working on the fish source code itself β it's giving main character energy for maintainers only π-hor--helpβ Displays help about using this command. When in doubt, ask for help π
Heads up: --dump-parse-tree writes to standard error, not standard output β so don't go looking for it in your piped output, bestie. π
π Copyright π
fish-shell developers β legends, honestly π
Alright, that's the whole page! This one's from fish version 4.9, dated Sep 08, 2026, so go forth and let your fish code be as cute as it is correct π¦π
π¦ where this page comes from
- arch rolling: fish 4.9.3-1 Β· GPL-2.0-only AND BSD-3-Clause AND ISC AND MIT AND PSF-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms