0

Every command I enter are saved in history but I want not to save the command that are shown error in the shell.

what should i add in the powershell config to do that

1 Answers1

0

Use the Clear-History cmdlet to remove entries from the history. Since history doesn't save results of the commands, you need to remove invalid ones manually.

vonPryz
  • 22,996
  • 7
  • 54
  • 65