rekha_sri
rekha_sri

Reputation: 2725

How can ignore more than one commands from history?

If we want to remove one command from history we can use,

For Example,

export HISTIGNORE="ls" -> It will remove the ls command from history.

But I want to know how to ignore more than one commands from history?

Thanks in Advance.

Upvotes: 1

Views: 427

Answers (1)

eumiro
eumiro

Reputation: 212885

Input the list with commands separated by colons:

export HISTIGNORE="&:ls:[bf]g:exit"

Upvotes: 2

Related Questions