Skip to main content
added 88 characters in body
Source Link
user364455
  • 3k
  • 2
  • 14
  • 15

PowerShell in Windows 10 use PSReadline for better command line editing experience. PSReadline does not use normal console input buffer and so not affected by Discard Old Duplicates option. You should disable duplicates in PSReadline options:

Set-PSReadlineOption -HistoryNoDuplicates

You have to put that in your PowerShell profile, if you want this as default behavior.

PowerShell in Windows 10 use PSReadline for better command line editing experience. PSReadline does not use normal console input buffer and so not affected by Discard Old Duplicates option. You should disable duplicates in PSReadline options:

Set-PSReadlineOption -HistoryNoDuplicates

PowerShell in Windows 10 use PSReadline for better command line editing experience. PSReadline does not use normal console input buffer and so not affected by Discard Old Duplicates option. You should disable duplicates in PSReadline options:

Set-PSReadlineOption -HistoryNoDuplicates

You have to put that in your PowerShell profile, if you want this as default behavior.

Source Link
user364455
  • 3k
  • 2
  • 14
  • 15

PowerShell in Windows 10 use PSReadline for better command line editing experience. PSReadline does not use normal console input buffer and so not affected by Discard Old Duplicates option. You should disable duplicates in PSReadline options:

Set-PSReadlineOption -HistoryNoDuplicates