gabebw / most-used

Find your most-used shell commands
BSD 3-Clause "New" or "Revised" License
12 stars 0 forks source link

Do some actual analysis #16

Closed gabebw closed 4 years ago

gabebw commented 7 years ago

It'd be nice if this happened:

$ most-used --analyze
Your most-used command is: g
Your most-used command that would probably be better as an alias is: heroku
Here's the top 25% of your commands:
30 g
10 heroku
5 spring

Maybe print commands that would maybe be better as an alias in yellow?

"Maybe be better as an alias" can just mean "over 5 characters", or do some Fancy Math where each command's value is length * (number of times used) and it's better as an alias if it's in the top 25% of values across all commands. Maybe even check arguments too!

gabebw commented 7 years ago

Tests to write:

gabebw commented 7 years ago

I have a spike going in the gbw-analysis branch.