Skip to main content

PowerShell

Get command history

調出 PowerShell 過去下過指令的歷程檔案路徑

(Get-PSReadlineOption).HistorySavePath

可以用編輯器直接開啟檔案,e.g. 使用 VSCode 開啟

code (Get-PSReadlineOption).HistorySavePath