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
Set-PSReadlineOption -HistorySaveStyle SaveAtExit not working on Windows 10 build 10162 #262
This option hasn't been working in the last couple of Windows 10 builds dating back to build 10130 I think. I can workaround this for now by not using this option and letting it save incrementally.
Activity
gwojan commentedon Jul 5, 2015
I don't think it works correctly on Windows 7 either. I recently started using -SaveAtExit with the latest builds and my history wasn't saved at all.
rkeithhill commentedon Jul 5, 2015
Greg Wojan (@gwojan) Thanks for confirming the issue.
daxian-dbw commentedon Apr 6, 2022
Keith Hill (@rkeithhill) Can you please confirm if this is still an issue with the latest PSReadLine module?
rkeithhill commentedon Apr 20, 2022
Dongbo Wang (@daxian-dbw) AFAICT nothing is saved in the history file if you use
SaveAtExit. 🤷♂️daxian-dbw commentedon Apr 20, 2022
Keith Hill (@rkeithhill) Thanks for checking and confirming.
puxu-msft commentedon Jul 29, 2022
same issue, 2.2.5 and win11.
Shuangcheng-Ni commentedon Aug 14, 2023
I've tested this command with PowerShell 5.1 and 7.3 on Windows 11. Is this the expected behavior?
exitcommandStevenBucher98 commentedon Oct 2, 2023
I tested this and have had the following behaviors with PSReadline 2.3.3 and Windows 11:
Personally I would expect history to be saved when
exitis typed, unsure if this is a technical limitation Dongbo Wang (@daxian-dbw)?Also I get no history saved when I do
SaveAtExiton Mac.