1. 使用默认配置运行:fastfetch
2. 使用所有支持的模块运行,并找到您感兴趣的内容:fastfetch -c all.jsonc
3. 查找 fastfetch 检测到的所有数据:fastfetch -s <模块> --format json
4. 显示帮助信息:fastfetch --help
5. 根据命令行参数生成配置文件:fastfetch --arg1 --arg2 --gen-config
请注意,`<模块>` 是一个占位符,您需要将其替换为实际的模块名称。其他参数(如 `--arg1` 和 `--arg2`)应根据实际情况替换为相应的参数值。
项目官网:GitHub - fastfetch-cli/fastfetch: Like neofetch, but much faster because written mostly in C.
Installation
Linux
Some distros packaged an outdated fastfetch version. Older version is not supported, please always ensure that the latest version is used.
- Ubuntu: ppa:zhangsongcui3371/fastfetch (for Ubuntu 22.04 or newer)
- Debian / Ubuntu: Download
fastfetch-linux-<proper architecture>.deb
from Github release page and double-click it (for Ubuntu 20.04 or newer and Debian 11 or newer). - Arch Linux:
sudo pacman -S fastfetch
- Fedora:
sudo dnf install fastfetch
- Gentoo:
sudo emerge --ask app-misc/fastfetch
- Alpine:
apk add --upgrade fastfetch
- NixOS:
nix-shell -p fastfetch
- openSUSE:
sudo zypper install fastfetch
- ALT Linux:
sudo apt-get install fastfetch
Replace sudo with doas depending on what you use.
See also if fastfetch has been packaged for your favorite Linux distro.
If fastfetch is not packaged for your distro or an outdated version is packaged, linuxbrew is a good alternate: brew install fastfetch
macOS
...via HomeBrew:
brew install fastfetch
...via MacPorts:
sudo port install fastfetch
Windows
scoop install fastfetch
You may also download it directly from GitHub releases page and extract the archive.
FreeBSD
pkg install fastfetch
Android (Termux)
pkg install fastfetch
Build from source
See Wiki: Building · fastfetch-cli/fastfetch Wiki · GitHub
Usage
- Run it with default configuration:
fastfetch
- Run it with all supported modules and find what you interest:
fastfetch -c all.jsonc
- Find all data that fastfetch detects:
fastfetch -s <module> --format json
- Display help messages:
fastfetch --help
- Generate config file based on command line arguments:
fastfetch --arg1 --arg2 --gen-config
Customization
Fastfetch uses the JSONC (or JSON with comments) for configuration. See Wiki for detail. There are some premade config files in presets, including the ones used for the screenshots above. You can load them using -c <filename>
. They may also serve as a good example for format arguments.
Logos can be heavily customized too; see the logo documentation for more information.