I'm trying to set up my Terminal (bash) so that in history it doesn't show duplicate commands (i.e. if I type a command 5 times, then press the up arrow to go through the history it only shows it once).
There's no .bash_profile in my Home directory, so I created one, and added the following line:
export HISTCONTROL=ignoredups
However, still can't get it to work.
There's no .bash_profile in my Home directory, so I created one, and added the following line:
export HISTCONTROL=ignoredups
However, still can't get it to work.
Last edited: