Preventing duplicates in bash history

Published on 2024-04-27 • Modified on 2024-04-27

This snippet shows how to prevent duplicates in bash history. Note that it is automatically done when using Fishshell.


export HISTCONTROL=ignoreboth:erasedups

 More on Stackoverflow   Read the doc  More on the web  Random snippet

  Work with me!


Call to action

Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )

Thank you for reading! And see you soon on Strangebuzz! 😉

COil