Linux 和 macOS 上用户的 PowerShell 配置文件路径位置?

dar*_*sli 5 linux powershell profile macos

我在 Linux 上找不到用户的 PowerShell 本地配置文件。它位于非 Windows 操作系统上的什么位置?

dar*_*sli 4

根据XDG 基本目录规范,用户的配置文件位于:

~/.config/powershell/profile.ps1

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