← 返回命令列表

Linux command

onefetch 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show repository info

onefetch

Show info for specific repository

onefetch [/path/to/repo]

Show info in ASCII art

onefetch --ascii-language [python]

Disable ASCII art

onefetch --no-art

Show specific info only

onefetch --show-info [project,head,version,size]

Hide specific info

onefetch --hide-info [authors,commits]

Output as JSON

onefetch --output json

Use custom image

onefetch --image [/path/to/image.png]

说明

onefetch is a command-line Git information tool that displays repository summary with ASCII art representing the dominant programming language. It's designed for quick repository overview, similar to neofetch for system info. The display includes: project name, description, HEAD reference, version tags, creation date, languages breakdown, authors, last change, repository size, lines of code, license, and dependencies. ASCII art is automatically selected based on the dominant language. Over 100 language logos are included. Custom images can be displayed in supported terminals (kitty, iTerm2, terminals with Sixel support). Author statistics show commit counts and line contributions. Bot accounts can be filtered out. Language detection respects .gitignore and can exclude additional patterns. Output formats (JSON, YAML) enable integration with other tools. Field selection allows customizing what information appears, useful for different use cases or terminal sizes.

参数

-a, --ascii-language _LANG_
Force ASCII art for specified language.
-i, --image _FILE_
Use custom image instead of ASCII.
--image-protocol _PROTOCOL_
Image protocol: sixel, kitty, iterm.
--no-art
Disable ASCII/image art.
-o, --output _FORMAT_
Output format: yaml, json.
--show-info _FIELDS_
Show only specified info fields.
--hide-info _FIELDS_
Hide specified info fields.
--no-bold
Disable bold text.
--no-color-palette
Hide color palette.
--number-of-authors _NUM_
Number of authors to display.
--number-of-languages _NUM_
Number of languages to display.
-e, --exclude _PATTERNS_
Ignore files matching patterns.
--no-bots
Exclude bot commits from statistics.
-T, --true-color _WHEN_
True color: auto, always, never.
-d, --disabled-fields _FIELDS_
Deprecated alias for --hide-info.

FAQ

What is the onefetch command used for?

onefetch is a command-line Git information tool that displays repository summary with ASCII art representing the dominant programming language. It's designed for quick repository overview, similar to neofetch for system info. The display includes: project name, description, HEAD reference, version tags, creation date, languages breakdown, authors, last change, repository size, lines of code, license, and dependencies. ASCII art is automatically selected based on the dominant language. Over 100 language logos are included. Custom images can be displayed in supported terminals (kitty, iTerm2, terminals with Sixel support). Author statistics show commit counts and line contributions. Bot accounts can be filtered out. Language detection respects .gitignore and can exclude additional patterns. Output formats (JSON, YAML) enable integration with other tools. Field selection allows customizing what information appears, useful for different use cases or terminal sizes.

How do I run a basic onefetch example?

Run `onefetch` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --ascii-language _LANG_ do in onefetch?

Force ASCII art for specified language.