cmd-wrapped
shell history year-in-review summary generator
TLDR
Generate your command-line wrapped summary
SYNOPSIS
cmd-wrapped [options]
DESCRIPTION
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.
PARAMETERS
--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.
CAVEATS
Accuracy depends on your shell's history configuration. Commands may be undercounted if history is limited in size, duplicates are ignored, or certain commands are excluded from history. Fish shell uses a different history format that requires specific parsing.
HISTORY
cmd-wrapped was created as a fun end-of-year tool inspired by Spotify Wrapped, the popular annual music listening summary. It emerged from the developer community's interest in personal analytics and the trend of "wrapped" summaries across various platforms.
