Skip to content

A CLI tool to analyze shell history (bash/zsh/fish) and rank your most used successful commands, with smart sudo handling.

Notifications You must be signed in to change notification settings

Uliboooo/histstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

histstat

histstat is a small CLI tool that analyzes your shell history file and shows a ranking of the most frequently executed successful commands (exit status = 0).

It automatically detects the latest history file from bash, zsh, or fish, so no manual configuration is required.

Features

  • Automatically detects bash / zsh / fish history files
  • Selects the most recently modified history file
  • Counts only successful commands (exit status = 0)
  • Handles sudo correctly (counts the actual command, not sudo)
  • Sorts commands by execution count
  • Configurable output size via CLI option

Usage

Show the top 10 commands (default).

histstat

Show the top 5 commands.

histstat -c 5

About

A CLI tool to analyze shell history (bash/zsh/fish) and rank your most used successful commands, with smart sudo handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages