cantino / mcfly

Fly through your shell history. Great Scott!
MIT License
6.75k stars 176 forks source link

Feature: quick stats #330

Closed nfultz closed 19 hours ago

nfultz commented 1 year ago

It would be neat to add something like mcfly stats to the cli for the curious - it could be roughly equivalent to

sqlite3 .local/share/mcfly/history.db "select substr(cmd,1,instr(cmd,' ')-1), count(1) as n from commands group by 1 order by 2 desc limit 40;"

Inspired by https://www.miskatonic.org/2023/02/21/commands/

cantino commented 1 year ago

I'd be happy to accept a pull request!

nfultz commented 1 year ago

Sure, I can add it to my todo list.