Linux 和 macOS 上用户的 PowerShell 历史记录保存路径位置?

dar*_*sli 2 linux powershell history macos

非 Windows 操作系统上的 PowerShell 历史记录保存文件位于何处?

dar*_*sli 5

根据XDG 基本目录规范,历史保存文件位于:

~/.local/share/powershell/PSReadline/ConsoleHost_history.txt

来源:PowerShell Core 6.0 的新增功能 - 文件系统