all repos — nixfiles @ 8dca85d4bc8b82a586f8fdbb7bc7b7a0d7d4e9e8

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

shell: translate history statistic aliases to fish

Alan Pearce
commit

8dca85d4bc8b82a586f8fdbb7bc7b7a0d7d4e9e8

parent

22a921a71ee318221a61a6bfb72bb7015239fa9e

2 files changed, 5 insertions(+), 1 deletion(-)

jump to
M user/settings/fish.nixuser/settings/fish.nix
@@ -42,6 +42,10 @@ if test -n $KITTY_INSTALLATION_DIR
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"; };
M user/settings/shell.nixuser/settings/shell.nix
@@ -36,7 +36,7 @@ https = "xh --default-scheme https";
xhs = "xh --default-scheme https"; hist-freq-lines = "fc -l -10000 | cut -d' ' -f4- | sort | uniq -c | sort -gr | head -n100 | less"; - hist-freq-commands = "fc -l -10000 | cut -d' ' -f4 | sort | uniq -c | sort -gr | head -n10 | less"; + hist-freq-commands = "fc -l -10000 | cut -d' ' -f4 | sort | uniq -c | sort -gr | head -n100 | less"; wprop = "xprop | egrep '^WM_(CLASS|NAME|WINDOW_ROLE|TYPE)'"; # Enable the following commands to support aliases.