Skip to main content
added 160 characters in body
Source Link
l0b0
  • 53.6k
  • 48
  • 225
  • 398

You might want HISTIGNORE$HISTIGNORE: "A colon-separated list of patterns used to decide which command lines should be saved on the history list." This line in your ~/.bashrc should do the job:

HISTIGNORE='rm *:svn revert*'

Also, you can add a space at the beginning of a command to exclude it from history. This works as long as $HISTCONTROL contains ignorespace or ignoreboth, which is default on any distro I've used.

You might want HISTIGNORE: "A colon-separated list of patterns used to decide which command lines should be saved on the history list."

Also, you can add a space at the beginning of a command to exclude it from history.

You might want $HISTIGNORE: "A colon-separated list of patterns used to decide which command lines should be saved on the history list." This line in your ~/.bashrc should do the job:

HISTIGNORE='rm *:svn revert*'

Also, you can add a space at the beginning of a command to exclude it from history. This works as long as $HISTCONTROL contains ignorespace or ignoreboth, which is default on any distro I've used.

Source Link
l0b0
  • 53.6k
  • 48
  • 225
  • 398

You might want HISTIGNORE: "A colon-separated list of patterns used to decide which command lines should be saved on the history list."

Also, you can add a space at the beginning of a command to exclude it from history.