Created
May 27, 2023 19:35
-
-
Save alexrqs/1faf61f1b3aeb60a28da9f54e75c283c to your computer and use it in GitHub Desktop.
avoid/remove duplicates from zsh history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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