Skip to content

Instantly share code, notes, and snippets.

@alexrqs
Created May 27, 2023 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexrqs/1faf61f1b3aeb60a28da9f54e75c283c to your computer and use it in GitHub Desktop.
Save alexrqs/1faf61f1b3aeb60a28da9f54e75c283c to your computer and use it in GitHub Desktop.
avoid/remove duplicates from zsh history
code ~/.zshrc
# add => "setopt HIST_IGNORE_ALL_DUPS"
omz reload
cp $HISTFILE ${HISTFILE}.backup
awk '!a[$0]++' ${HISTFILE}.backup > $HISTFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment