cmd-wrapped

Crates.iocmd-wrapped
lib.rscmd-wrapped
version0.4.1
sourcesrc
created_at2024-01-17 15:28:43.46905
updated_at2024-09-01 18:55:42.433545
descriptionA CLI tool to view Unix shell history statistics, with support for zsh, bash, fish, and atuin.
homepage
repositoryhttps://github.com/YiNNx/cmd-wrapped
max_upload_size
id1103132
size344,488
YiNN (YiNNx)

documentation

README

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
Commit count: 0

cargo fmt