Skills2026年4月14日·1 分钟阅读

fastfetch — A Fast, Modern System Information Tool Replacing neofetch

fastfetch is the successor to neofetch: display system info (OS, kernel, CPU, GPU, memory, uptime) with a distro logo, in milliseconds. Written in C with rich customization via JSONC config.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
step-1.md
先审查命令
npx -y tokrepo@latest install a672c079-380a-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

TL;DR
fastfetch displays system info with distro logos in milliseconds, written in C as the successor to neofetch.
§01

What it is

fastfetch is a command-line tool that displays system information (OS, kernel, CPU, GPU, memory, disk, uptime) alongside a distro or OS logo in the terminal. Written in C, it is the successor to the popular neofetch tool and runs in milliseconds rather than seconds. fastfetch supports rich customization via JSONC configuration files.

fastfetch is designed for terminal enthusiasts, Linux users, and anyone who wants a quick, beautiful system overview in their terminal.

§02

How it saves time or tokens

neofetch was written in bash and could take several seconds to gather system information on some configurations. fastfetch is written in C and gathers the same information in under 100 milliseconds. The JSONC configuration format provides precise control over which modules to display, their order, formatting, and colors, all without editing bash scripts.

§03

How to use

  1. Install fastfetch:
# macOS
brew install fastfetch

# Ubuntu 24.04+
sudo apt install fastfetch

# Arch
sudo pacman -S fastfetch

# Windows
winget install Fastfetch-cli.Fastfetch
  1. Run it:
fastfetch
  1. Customize with a JSONC config:
fastfetch --gen-config
# Edit ~/.config/fastfetch/config.jsonc
§04

Example

A custom configuration showing minimal system info:

// ~/.config/fastfetch/config.jsonc
{
  "modules": [
    "title",
    "separator",
    "os",
    "host",
    "kernel",
    "uptime",
    "cpu",
    "gpu",
    "memory",
    "disk",
    "shell",
    "terminal",
    "separator",
    "colors"
  ],
  "logo": {
    "type": "auto"
  }
}

Run fastfetch and see your system info formatted with your OS logo and the configured modules.

§05

Related on TokRepo

§06

Common pitfalls

  • Expecting neofetch configuration to work with fastfetch. fastfetch uses JSONC config files, not bash scripts. You need to recreate your customizations in the new format.
  • Not running fastfetch --gen-config to create the default config file first. Without the config file, you cannot customize the output. The generated default is a good starting point.
  • Installing on older Ubuntu versions without the official PPA. Ubuntu versions before 24.04 do not have fastfetch in the default repositories. Use the official PPA or build from source.
  • Starting with an overly complex configuration instead of defaults. Begin with the minimal setup, verify it works, then customize incrementally. This approach catches configuration errors early and keeps troubleshooting straightforward.

For teams evaluating this tool, the time saved on initial setup alone justifies the adoption. The well-documented API and active community mean most common questions have already been answered, reducing the learning curve and the number of tokens spent explaining basic usage to AI assistants.

常见问题

How fast is fastfetch compared to neofetch?+

fastfetch typically runs in 20-100 milliseconds, while neofetch takes 1-5 seconds. The C implementation avoids the overhead of bash subshell spawning and uses native system APIs for information gathering.

Can I use custom logos?+

Yes. fastfetch supports built-in logos for hundreds of distros and custom logos from image files or ASCII art. Configure the logo type in your JSONC config file.

Does fastfetch work on macOS and Windows?+

Yes. fastfetch supports Linux, macOS, Windows, FreeBSD, and Android. Each platform shows OS-appropriate information and logos.

Can I output system info as JSON?+

Yes. Run fastfetch --format json to get machine-readable JSON output. This is useful for scripts and monitoring tools that need system information programmatically.

Is fastfetch a drop-in replacement for neofetch?+

Functionally yes, but configuration is different. fastfetch displays the same type of information (OS, CPU, GPU, memory, etc.) with the same visual style. Configuration uses JSONC instead of bash, and the command name is fastfetch instead of neofetch.

引用来源 (3)

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产