A CLI Tool for Command Line Insights
A CLI to view your shell history stats, with support for zsh, bash, fish, nushell, and atuin.
cargo install cmd-wrappedUnzip, chmod and run the binary file in the terminal.
yay -S cmd-wrappednix 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 Supported options for `` : 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.
No open issues yet, or sync has not completed.