By using the arrow keys one can fill the command line with the last called commands. However, Bash does call all the previous commands, not just unique commands.
$./a.out //oldest command called
$ gcc main.c
$ gcc main.c
$ gcc main.c //latest command called
$ //4 strokes required to call ./a.out, altough 2 would be sufficient
Is there a way to ignore past commands in the history list if they are identical and automatically call/fill in the next unique command in history?
Thank you!