summary refs log tree commit diff stats
path: root/user/settings/fish
diff options
context:
space:
mode:
Diffstat (limited to 'user/settings/fish')
-rw-r--r--user/settings/fish/functions/history-frequent-subcommands.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/fish/functions/history-frequent-subcommands.fish b/user/settings/fish/functions/history-frequent-subcommands.fish
new file mode 100644
index 00000000..2e7040fc
--- /dev/null
+++ b/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