citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

fuzz-compress-hist (159B)


      1 #!/usr/bin/env bash
      2 HISTFILE=${1:-$HOME/.fuzzhist}
      3 touch "$HISTFILE"
      4 tac "$HISTFILE" | awk '!visited[$0]++' | tac > "$HISTFILE".2
      5 mv "$HISTFILE.2" "$HISTFILE"