LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

cmd-wrapped

shell history year-in-review summary generator

TLDR

Generate your command-line wrapped summary (current stats)
$ cmd-wrapped
copy
Show statistics for a specific year
$ cmd-wrapped [2024]
copy
Analyze a specific shell's history
$ cmd-wrapped -s [zsh|bash|fish|nu|atuin]
copy

SYNOPSIS

cmd-wrapped [-s shell] [year]

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 to produce statistics about your most-used commands, busiest hours, and command patterns over time.The tool reads the history of the detected (or specified) shell and presents colorful, formatted output showing top commands, total commands executed, unique commands used, and temporal usage patterns.cmd-wrapped supports Zsh, Bash, Fish, Nushell, and Atuin. Pass a year as a positional argument to scope the report to that year, or `-s` to choose which shell's history to analyze.

PARAMETERS

-s shell

Specify which shell history to analyze: zsh, bash, fish, nu (nushell), or atuin.
year
Positional argument selecting a specific year (e.g., 2024). Without it, current statistics are shown.

INSTALL

nix profile install nixpkgs#cmd-wrapped
copy

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.

SEE ALSO

history(1), bash(1), zsh(1), fish(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid