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:

  • -w or --write β€” Indents a given file and then immediately writes the result right back into that same file. Iconic, in-place, no extra copies. 🫢
  • -i or --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.
  • -c or --check β€” Doesn't indent at all; it just returns 0 if the code is already indented exactly the way fish_indent would 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. πŸ”₯
  • -v or --version β€” Displays the current fish version, then dips out. Periodt.
  • --ansi β€” Colorizes the output using ANSI escape sequences, pulling colors from the environment (like fish_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, like fish_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 πŸ™ˆ
  • -h or --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. πŸ’€

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