You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
any command with 'secret' doesnt get saved in history, even though no secrets exposed. #5108
ran a command with 'secrets' and found that it doesnt get stored in history.
what idiot or bot thought it would be a good idea to do this stupid shit? it wasnt a problem before. imagine all the people's
time youve wasted bc they're left guessing why the fuck their command isnt in the history, as if they're supposed to just know.
Activity
dAu6jARL commentedon May 16, 2026
I found like this issue.
In PowerShell 7.6.1, any command including case-insensive "token" can't be saved to (Get-PSReadLineOption).HistorySavePath.
sharpchen commentedon Jun 28, 2026
That's intentional, see:
PSReadLine/PSReadLine/History.cs
Lines 116 to 118 in ac69010
I should be able to override with https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.6#example-7-use-historyhandler-to-filter-commands-added-to-history