Skip to content

Instantly share code, notes, and snippets.

@1271
Created August 17, 2019 18:14
Show Gist options
  • Save 1271/131ed54adfff0032112b3a705b921e41 to your computer and use it in GitHub Desktop.
Save 1271/131ed54adfff0032112b3a705b921e41 to your computer and use it in GitHub Desktop.
Clear bash history dubles
cat ~/.bash_history | awk '!($0 in a) {a[$0];print}' > ~/.bash_history.tmp && mv -f ~/.bash_history.tmp ~/.bash_history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment