Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Eliminate Duplicates in PowerShell History

$
0
0

Summary: Use an option in the PSReadLine module to control Windows PowerShell 5.0 history duplication.

Hey, Scripting Guy! Question How can I make sure that there are no duplicates in my history?

Hey, Scripting Guy! Answer In Windows PowerShell 5.0 with the PSReadLineModule loaded, use the Set-PSReadLineOption 
           cmdlet as follows:

Set-PSReadLineOption –HistoryNoDuplicates:$True


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>