Summary: Use an option in the PSReadLine module to control Windows PowerShell 5.0 history duplication.
How can I make sure that there are no duplicates in my history?
In Windows PowerShell 5.0 with the PSReadLineModule loaded, use the Set-PSReadLineOption
cmdlet as follows:
Set-PSReadLineOption –HistoryNoDuplicates:$True
0 comments