summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-10-09 15:45:59 +0200
committerAlan Pearce2019-10-09 15:45:59 +0200
commit880d11255a9164221a30be2bcfc9447c0629248b (patch)
tree1e349e69b0eb70bd42d873d98d3ee743424f4fb0
parente158faabfec76ea77e553ac2e141827266783be7 (diff)
downloadnixfiles-880d11255a9164221a30be2bcfc9447c0629248b.tar.lz
nixfiles-880d11255a9164221a30be2bcfc9447c0629248b.tar.zst
nixfiles-880d11255a9164221a30be2bcfc9447c0629248b.zip
zsh: use more history for command analysis
-rw-r--r--user/settings/zsh.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 1da9a04d..d2feb988 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -77,8 +77,8 @@ in
       tsnode = "pnpx ts-node";
 
       history = "fc -l $(( $LINES - 2 ))";
-      hist-freq-lines = "fc -l -2000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less";
-      hist-freq-commands = "fc -l -2000 | cut -d' ' -f4 | sort | uniq -c | sort -g | tail -n10 | less";
+      hist-freq-lines = "fc -l -10000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less";
+      hist-freq-commands = "fc -l -10000 | cut -d' ' -f4 | sort | uniq -c | sort -g | tail -n10 | less";
       wprop = "xprop | egrep '^WM_(CLASS|NAME|WINDOW_ROLE|TYPE)'";
 
       # Enable the following commands to support aliases.
@@ -173,7 +173,7 @@ in
       export GHQ_ROOT="$HOME/projects:$HOME/go/src:$HOME/quicklisp/local-projects"
 
       function hist-freq-subcommands () {
-        fc -l -m "$1*" -2000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less
+        fc -l -m "$1*" -10000 | cut -d' ' -f4- | sort | uniq -c | sort -g | tail -n100 | less
       }
 
     '' + builtins.readFile ../zsh/.config/zsh/.zshrc;