Crates.io | cmd-wrapped |
lib.rs | cmd-wrapped |
version | 0.4.1 |
source | src |
created_at | 2024-01-17 15:28:43.46905 |
updated_at | 2024-09-01 18:55:42.433545 |
description | A CLI tool to view Unix shell history statistics, with support for zsh, bash, fish, and atuin. |
homepage | |
repository | https://github.com/YiNNx/cmd-wrapped |
max_upload_size | |
id | 1103132 |
size | 344,488 |
A CLI to view your shell history stats, with support for zsh, bash, fish, and atuin.
cargo install cmd-wrapped
Unzip, chmod and run the binary file in the terminal.
yay -S cmd-wrapped
nix run nixpkgs#cmd-wrapped
# 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:
- For Zsh - EXTENDED_HISTORY (oh-my-zsh has it enabled by default)
- For Bash - HISTTIMEFORMAT
Commands executed before configuring the option won't be recorded with a timestamp and this will affect cmd-wrapped’s stats.