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
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
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.