export HISTCONTROL=ignoredups:erasedupsignoredups prevents the history from duplicates
erasedups if a command is already in the list it will be removed at the old position and put in the beginning of the history list
export HISTCONTROL=ignoredups:erasedupsignoredups prevents the history from duplicates
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.