Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 2.58 KB

File metadata and controls

75 lines (56 loc) · 2.58 KB

Fastfetch

Fastfetch 是一款类似 neofetch 的系统信息展示工具,主要用 C 编写,强调性能和可定制性。支持 Linux、macOS、Windows 7+、Android、FreeBSD、OpenBSD、NetBSD、DragonFly、Haiku、SunOS。

示例配置见 presets/examples,更多截图与平台说明见 Wiki。

安装

Linux(部分):

  • Debian 13+ / Ubuntu: apt install fastfetch
  • Arch: pacman -S fastfetch
  • Fedora: dnf install fastfetch
  • openSUSE: zypper install fastfetch
  • Linuxbrew:brew install fastfetch
  • 各发行版打包状态:https://repology.org/project/fastfetch/versions

macOS:

  • Homebrew:brew install fastfetch
  • MacPorts:sudo port install fastfetch

Windows:

  • scoop install fastfetch
  • choco install fastfetch
  • winget install fastfetch
  • MSYS2:pacman -S mingw-w64---fastfetch

BSD:

  • FreeBSD:pkg install fastfetch
  • NetBSD:pkgin in fastfetch
  • OpenBSD:pkg_add fastfetch

Android(Termux):

  • pkg install fastfetch

Nightly 构建:

源码构建

基本上是 cmake . && make。详见 Wiki:https://github.com/fastfetch-cli/fastfetch/wiki/Building

使用

  • 默认运行:fastfetch
  • 查看所有可用模块示例:fastfetch -c all.jsonc
  • 以 JSON 输出指定模块:fastfetch -s <module1>[:<module2>] --format json
  • 完整命令行帮助:fastfetch --help
  • 生成最小配置:fastfetch --gen-config [</path/to/config.jsonc>]
    • 生成完整配置:fastfetch --gen-config-full
    • 请使用支持 JSON schema 的编辑器(如 VSCode)编辑配置文件!
    • 如果你连接 Github 有网络困难(智能提示不生效),可将配置文件中的 $schema 的值替换为 https://gitee.com/carterl/fastfetch/raw/dev/doc/json_schema.json

定制

{
  "modules": [
    { "type": "gpu", "format": "{name}" }
  ]
}

详见:https://github.com/fastfetch-cli/fastfetch/wiki/Format-String-Guide

反馈与支持

赞助