Bash History Analyzer

FarooqKZ 9fdf6ebf68 Updating email address 1 year ago
.gitignore 8549bbcdac Initial commit 4 years ago
LICENSE 2dc390aca9 The "How to apply this license" omitted 2 years ago
README.md 5b6457d369 Analyse -> Analyze(an old typo!) 1 year ago
bha 9fdf6ebf68 Updating email address 1 year ago

README.md

BHA

Bash History Analyzer or BHA is a small script written in Python to Analyze your Bash history and show you which programs are more recent and which are less.

It may work with history files of other shells such as the plain sh or zsh.

License

BHA is free software under GNU GPL 3+ (see LICENSE)

Usage

Usage is simple: bha [history_file]

history_file: path of your bash history file and by default it's ~/.bash_history

Result

Result of BHA is something like this:

ls: 25.0% (9/36)
bash: 13.89% (5/36)
echo: 13.89% (5/36)
bha: 13.89% (5/36)
wget: 13.89% (5/36)
aria2c: 5.56% (2/36)
rm: 2.78% (1/36)
clear: 2.78% (1/36)
zip: 2.78% (1/36)
mkdir: 2.78% (1/36)
unzip: 2.78% (1/36)
other commands: 

% of other: 0.0% (0/36)