all repos — nixfiles @ bd3083be8b43cb2e2e10a7456551cfc5fb0fde11

System and user configuration, managed by nix and home-manager

fish: port function to get most common subcommands of given command

Alan Pearce
commit

bd3083be8b43cb2e2e10a7456551cfc5fb0fde11

parent

8dca85d4bc8b82a586f8fdbb7bc7b7a0d7d4e9e8

1 file changed, 3 insertions(+), 0 deletions(-)

jump to
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