Dieser Artikel stellt vor, wie damit umgegangen wird, wenn das Profil in PowerShell nicht geladen wird.
Ich habe es vergessen. Der Ordner wird standardmäßig nicht erstellt, wissen Sie. Das stimmt. Es ist eine unfreundliche Spezifikation. Warum haben sie eine so unfreundliche Spezifikation gemacht.
// admin powershell
Set-ExecutionPolicy RemoteSigned
echo $PROFILE # => C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
// bash
# z.B.
mkdir -p /mnt/c/Users/user/Documents/WindowsPowerShell
touch /mnt/c/Users/user/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1