summary refs log tree commit diff stats
path: root/user/settings/fish/functions/history-frequent-subcommands.fish
blob: 2e7040fcebf44e83043375574611efe278bddbec (plain)
1
2
3
function history-frequent-subcommands
    history search --prefix "$argv[1] " --max 10000 | cut -d' ' -f 2 | sort | uniq -c | sort -gr | head -n100 | less
end