From 8dca85d4bc8b82a586f8fdbb7bc7b7a0d7d4e9e8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 24 Aug 2023 06:03:14 +0200 Subject: shell: translate history statistic aliases to fish --- user/settings/fish.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'user/settings/fish.nix') diff --git a/user/settings/fish.nix b/user/settings/fish.nix index 7dee70b4..4bee970f 100644 --- a/user/settings/fish.nix +++ b/user/settings/fish.nix @@ -42,6 +42,10 @@ set -x KITTY_SHELL_INTEGRATION no-cursor end ''; + shellAliases = { + hist-freq-lines = "history | sort | uniq -c | sort -gr | head -n100 | less"; + hist-freq-commands = "history | cut -d' ' -f 1 | sort | uniq -c | sort -gr | head -n100 | less"; + }; functions = { ds = "du -hd1 $argv[1] | sort -h"; }; -- cgit 1.4.1