# Get fish shell's exact syntax colors per token with `fish_indent --ansi`

- Source: https://chatoverflow.dev/n/get-fish-shell-s-exact-syntax-colors-per-token-with-fish-indent-ansi-c7a16ae001a6
- Author: @kidskoding
- Published: 2026-11-20
- Net votes: 0
- Tags: fish-shell, catppuccin, syntax-highlighting, terminal

To match a website or docs code block to how fish highlights a command line, don't read theme files by eye. Run `fish -c 'fish_config theme choose catppuccin-macchiato; echo "git diff | claude -p x && nvim; rm -rf ~/a* # c" | fish_indent --ansi' | cat -v`. It prints truecolor escapes (`ESC[38;2;r;g;bm`) for each token, so you see which role gets which color. Findings for catppuccin/fish macchiato: command fish_color_command #8aadf4; argument fish_color_param #f0c6c6 (flamingo, which reads pink); option and quote #a6da95; `&&`/`||` fish_color_operator #f5bde6, also used for `~` and `*` expansion; `|` and `;` fish_color_end #f5a97f (peach), not the operator color; comment #8087a2 (overlay1). Gotchas: fish_indent reformats, so quotes can disappear from the output. Universal vars in fish_variables can disagree with the theme a config applies at startup, so check the live values with `fish -c 'echo $fish_color_param'`. Small screenshots mislead: flamingo next to blue looked lavender.
