|
| 1 | +# Fastfetch |
| 2 | + |
| 3 | +Fastfetch 是一款类似 neofetch 的系统信息展示工具,主要用 C 编写,强调性能和可定制性。支持 Linux、macOS、Windows 7+、Android、FreeBSD、OpenBSD、NetBSD、DragonFly、Haiku、SunOS。 |
| 4 | + |
| 5 | +示例配置见 presets/examples,更多截图与平台说明见 Wiki。 |
| 6 | + |
| 7 | +## 安装 |
| 8 | + |
| 9 | +Linux(部分): |
| 10 | +- Debian 13+ / Ubuntu: apt install fastfetch |
| 11 | +- Arch: pacman -S fastfetch |
| 12 | +- Fedora: dnf install fastfetch |
| 13 | +- openSUSE: zypper install fastfetch |
| 14 | +- Linuxbrew:brew install fastfetch |
| 15 | +- 各发行版打包状态:https://repology.org/project/fastfetch/versions |
| 16 | + |
| 17 | +macOS: |
| 18 | +- Homebrew:brew install fastfetch |
| 19 | +- MacPorts:sudo port install fastfetch |
| 20 | + |
| 21 | +Windows: |
| 22 | +- scoop install fastfetch |
| 23 | +- choco install fastfetch |
| 24 | +- winget install fastfetch |
| 25 | +- MSYS2:pacman -S mingw-w64-<subsystem>-<arch>-fastfetch |
| 26 | + |
| 27 | +BSD: |
| 28 | +- FreeBSD:pkg install fastfetch |
| 29 | +- NetBSD:pkgin in fastfetch |
| 30 | +- OpenBSD:pkg_add fastfetch |
| 31 | + |
| 32 | +Android(Termux): |
| 33 | +- pkg install fastfetch |
| 34 | + |
| 35 | +Nightly 构建: |
| 36 | +- https://nightly.link/fastfetch-cli/fastfetch/workflows/ci/dev?preview |
| 37 | + |
| 38 | +## 源码构建 |
| 39 | + |
| 40 | +基本上是 `cmake . && make`。详见 Wiki:https://github.com/fastfetch-cli/fastfetch/wiki/Building |
| 41 | + |
| 42 | +## 使用 |
| 43 | + |
| 44 | +- 默认运行:`fastfetch` |
| 45 | +- 查看所有可用模块示例:`fastfetch -c all.jsonc` |
| 46 | +- 以 JSON 输出指定模块:`fastfetch -s <module1>[:<module2>] --format json` |
| 47 | +- 完整命令行帮助:`fastfetch --help` |
| 48 | +- 生成最小配置:`fastfetch --gen-config [</path/to/config.jsonc>]` |
| 49 | + - 生成完整配置:`fastfetch --gen-config-full` |
| 50 | + - 请使用支持 JSON schema 的编辑器(如 VSCode)编辑配置文件! |
| 51 | + - 如果你连接 Github 有网络困难(智能提示不生效),可将配置文件中的 `$schema` 的值替换为 `https://gitee.com/carterl/fastfetch/raw/dev/doc/json_schema.json` |
| 52 | + |
| 53 | +## 定制 |
| 54 | + |
| 55 | +- 配置使用 JSONC,语法与选项见 Wiki:https://github.com/fastfetch-cli/fastfetch/wiki/Configuration |
| 56 | +- 预设示例位于 presets,可用 `-c <filename>` 加载 |
| 57 | +- Logo 选项与图像显示见文档:https://github.com/fastfetch-cli/fastfetch/wiki/Logo-options |
| 58 | +- 模块格式化(示例,仅显示 GPU 名称): |
| 59 | +```jsonc |
| 60 | +{ |
| 61 | + "modules": [ |
| 62 | + { "type": "gpu", "format": "{name}" } |
| 63 | + ] |
| 64 | +} |
| 65 | +``` |
| 66 | +详见:https://github.com/fastfetch-cli/fastfetch/wiki/Format-String-Guide |
| 67 | + |
| 68 | +## 反馈与支持 |
| 69 | + |
| 70 | +- 使用问题:Discussions https://github.com/fastfetch-cli/fastfetch/discussions |
| 71 | +- 疑似缺陷:Issues https://github.com/fastfetch-cli/fastfetch/issues(请填写模版) |
| 72 | + |
| 73 | +## 赞助 |
| 74 | + |
| 75 | +<img src="https://github.com/user-attachments/assets/a36a6501-e8b0-4a10-9061-b9206d12ffba" width="220"> |
0 commit comments