Bash history: Ignore duplicates
If you execute the same command multiple times in a row, you'll have it multiple times in your bash history. To change that behavior, simply add this to your .bash_profile:
HISTCONTROL=ignoreboth
Written by Nils Caspar
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#History
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#