Andy Blanchard wrote: > HISTIGNORE only deals with consecutive duplicates, IIRC. > > What you want is: > > export HISTCONTROL=erasedups > > you might also want to add ":ignorespace" to the end of that. That will > cause any command prefixed by a space to be ignored as well - very useful > for those long commands that you will only ever run once! Thanks. I will change it.