Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ notice instead of a hung shell:

Set `FASTFETCH_TIMEOUT_MS` to tune the limit (default 5000).

The module list lives in `~/.config/fastfetch/config.jsonc`. One deviation from
the defaults is worth knowing about: the `Host` line is formatted as `{name}`
only, because fastfetch otherwise appends the product version — on OEM hardware
that is a long firmware/SKU string such as `124I:00108T:000M:...` that pushes the
useful part off the line.

### Extra status lines

The banner carries a few extra lines that only appear when they have something
Expand Down
6 changes: 5 additions & 1 deletion home/dot_config/fastfetch/config.jsonc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"title",
"separator",
"os",
"host",
{
"//": "Product name only. The default format appends {version}, which on OEM hardware is often a firmware/SKU string (e.g. '124I:00108T:...') that says nothing useful and makes the line unreadably long.",
"type": "host",
"format": "{name}"
},
"kernel",
"uptime",
"packages",
Expand Down
7 changes: 7 additions & 0 deletions tests/powershell/FastfetchStatus.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ Describe "fastfetch chezmoi wiring" {
$script:TemplateContent | Should -Match 'status\.sh\\" ansible'
}

It "config template should trim the host line to the product name" {
# The default host format appends the product version, which on OEM
# hardware is a long firmware/SKU string.
$script:TemplateContent | Should -Match '"type": "host"'
$script:TemplateContent | Should -Match '"format": "\{name\}"'
}

It "chezmoiignore should keep status.sh off Windows" {
$script:IgnoreContent | Should -Match '\.config/fastfetch/status\.sh'
}
Expand Down