diff --git a/docs/customization.md b/docs/customization.md index 6ce0a0d4..506339bb 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -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 diff --git a/home/dot_config/fastfetch/config.jsonc.tmpl b/home/dot_config/fastfetch/config.jsonc.tmpl index adade651..5280667f 100644 --- a/home/dot_config/fastfetch/config.jsonc.tmpl +++ b/home/dot_config/fastfetch/config.jsonc.tmpl @@ -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", diff --git a/tests/powershell/FastfetchStatus.Tests.ps1 b/tests/powershell/FastfetchStatus.Tests.ps1 index 90a041ee..cf62500d 100644 --- a/tests/powershell/FastfetchStatus.Tests.ps1 +++ b/tests/powershell/FastfetchStatus.Tests.ps1 @@ -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' }