#shell-history #unix-shell #shell #fish #zsh #atuin #command-line

app cmd-wrapped

A CLI tool to view Unix shell history statistics, with support for zsh, bash, fish, and atuin

4 releases (2 breaking)

0.4.1 Sep 1, 2024
0.4.0 Sep 1, 2024
0.3.0 Feb 5, 2024
0.2.0 Jan 17, 2024

#660 in Command line utilities

Download history 329/week @ 2024-08-31 59/week @ 2024-09-07 16/week @ 2024-09-14 27/week @ 2024-09-21 9/week @ 2024-09-28 6/week @ 2024-10-05 15/week @ 2024-10-12 4/week @ 2024-10-19 12/week @ 2024-11-02 4/week @ 2024-11-16 2/week @ 2024-11-23 120/week @ 2024-11-30 83/week @ 2024-12-07

209 downloads per month

MIT license

325KB
931 lines

cmd-wrapped

Stars   Release   Release  

A CLI to view your shell history stats, with support for zsh, bash, fish, and atuin.

Installation

cargo install cmd-wrapped

Unzip, chmod and run the binary file in the terminal.

  • Archlinux
yay -S cmd-wrapped
  • Nix❄️
nix run nixpkgs#cmd-wrapped

Usage

# fetch current stats
cmd-wrapped

# fetch annual shell history stats for a specific year
cmd-wrapped 2024

# specify the target shell
cmd-wrapped -s <shell>

Supported options for <shell> : zsh, bash, fish, atuin.

[!NOTE]

In some cases, cmd-wrapped may fail to output correct data (such as all outputs being 0). This is because it relies on the timestamp track for each command, which sometimes requires configuring specific options extraly:

Commands executed before configuring the option won't be recorded with a timestamp and this will affect cmd-wrapped’s stats.

Credits & License

  • Special thanks to @jyi2ya for the cooool idea!
  • License: MIT

Dependencies

~4–16MB
~146K SLoC