This article introduces how to handle when the profile doesn’t load in PowerShell.
I forgot. The folder isn’t created by default, you know. That’s right. It’s an unfriendly specification. Why did they make such an unfriendly specification.
// admin powershell
Set-ExecutionPolicy RemoteSigned
echo $PROFILE # => C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
// bash
# e.g.
mkdir -p /mnt/c/Users/user/Documents/WindowsPowerShell
touch /mnt/c/Users/user/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1