dorkhub

cmd-wrapped

πŸ‘©β€πŸ’» A CLI Tool for Command Line Insights

YiNNx
Rustβ˜… 1.3kβ‘‚ 33 forksMITupdated 1 year ago
visit the demogit clone https://github.com/YiNNx/cmd-wrapped.gitYiNNx/cmd-wrapped

cmd-wrapped

Stars Β  Release Β  Release Β 

A CLI to view your shell history stats, with support for zsh, bash, fish, nushell, 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, nu (nushell), 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:

  • For Zsh - EXTENDED_HISTORY (oh-my-zsh has it enabled by default)
  • For Bash - HISTTIMEFORMAT (To enable it, run this command: echo 'HISTTIMEFORMAT="%Y/%m/%d %H:%M:%S "' >> ~/.bashrc )
  • For Nushell - Enable SQLite history storage: $env.config.history.file_format = "sqlite"

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

more like this

perplexity-cli

🧠 A simple command-line client for the Perplexity API. Ask questions and receive answers directly from the terminal! πŸš€πŸš€πŸš€

Pythonβ˜… 176

anne-key

Firmware for Anne Pro Keyboard written in Rust

Rustβ˜… 572

TachiSnap

TachiSnap β€” Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…

HTMLβ˜… 50

search

search projects, people, and tags