← 返回命令列表

Linux command

cmd-wrapped 命令

文本

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

常用示例

Generate your command-line wrapped

cmd-wrapped

Generate wrapped for a specific shell

cmd-wrapped --shell [bash|zsh|fish]

Specify a custom history file

cmd-wrapped --history-file [path/to/.bash_history]

Generate wrapped for a specific year

cmd-wrapped --year [2024]

Output in JSON format

cmd-wrapped --json

Show detailed statistics

cmd-wrapped --verbose

说明

cmd-wrapped is a command-line tool that generates a "Spotify Wrapped" style summary of your terminal command history. It analyzes your shell history file to produce statistics about your most-used commands, busiest hours, and command patterns throughout the year. The tool automatically detects your default shell and locates the appropriate history file. It presents colorful, formatted output showing top commands, total commands executed, unique commands used, and temporal usage patterns. cmd-wrapped supports multiple shells including Bash, Zsh, and Fish, and can process custom history files for analysis. The JSON output option enables integration with other tools or custom visualizations of your command-line habits.

参数

--shell _SHELL_
Specify which shell history to analyze (bash, zsh, fish).
--history-file _FILE_
Path to a custom history file to analyze.
--year _YEAR_
Generate statistics for a specific year only.
--json
Output results in JSON format for scripting.
--verbose
Show additional detailed statistics.
--no-color
Disable colored output.
-h, --help
Display help information.
-V, --version
Display version information.

FAQ

What is the cmd-wrapped command used for?

cmd-wrapped is a command-line tool that generates a "Spotify Wrapped" style summary of your terminal command history. It analyzes your shell history file to produce statistics about your most-used commands, busiest hours, and command patterns throughout the year. The tool automatically detects your default shell and locates the appropriate history file. It presents colorful, formatted output showing top commands, total commands executed, unique commands used, and temporal usage patterns. cmd-wrapped supports multiple shells including Bash, Zsh, and Fish, and can process custom history files for analysis. The JSON output option enables integration with other tools or custom visualizations of your command-line habits.

How do I run a basic cmd-wrapped example?

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

What does --shell _SHELL_ do in cmd-wrapped?

Specify which shell history to analyze (bash, zsh, fish).