You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/help_format.txt
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,10 @@ For example the format string "Values: {1} ({2})", with the values "First" and "
4
4
The format string can contain placeholders in any order and have multiple occurrences.
5
5
To include spaces when setting from the command line, surround the whole string with double quotes (").
6
6
7
+
In 2.14.0 or newer, the value indices can be meaningful named tags.
8
+
For example: "--title-format '{user-name-colored}{at-symbol-colored}{host-name-colored}'" is equivalent to "--title-format '{6}{7}{8}'"
9
+
See "fastfetch -h title-format" for all supported tags.
10
+
7
11
If the value index is missing, meaning the placeholder is "{}", an internal counter sets the value index.
8
12
This means that the format string "Values: {1} ({2})" is equivalent to "Values: {} ({})".
9
13
Note that this counter only counts empty placeholders, so the format string "{2} {} {}" will contain the second value, then the first, and then the second again.
@@ -24,7 +28,7 @@ To stop formatting at any point in the format string, use "{-}".
24
28
To print something with color, start a placeholder with a '#' and then the linux terminal color encoding.
25
29
"\033[" at the start, and an 'm' at the end is automatically added, so don't do that.
26
30
A "{#}" is equivalent to a "{#0}" and resets everything to normal.
27
-
For example to print something pink and underline, use "{#4;35}...{#}". "{#underline_magenta}" is also supported.
31
+
For example to print something pink and underline, use "{#4;35}...{#}". "{#underline_magenta}" is also supported. See `fastfetch -h color` for detail.
28
32
Information about what the numbers mean can be found here: https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters.
29
33
Which escape codes are supported and how they look is defined by your terminal.
0 commit comments