fish: port function to get most common subcommands of given command
Alan Pearce alan@alanpearce.eu
Thu, 24 Aug 2023 21:07:43 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
A user/settings/fish/functions/history-frequent-subcommands.fish
@@ -0,0 +1,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