Powershell打印所有的history?
https://cloud.tencent.com/developer/article/1498006
Get-History|export-csv $env:temp"\history.csv"
不是我想要的;
Get-Content (Get-PSReadlineOption).HistorySavePath
这个是我想要的
Get-Content (Get-PSReadlineOption).HistorySavePath 乱码
Get-Content with utf-8
Get-Content (Get-PSReadlineOption).HistorySavePath -encoding UTF8
history在这个路径下;
C:\Users\xxxx\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt