I cannot find the user's PowerShell local profile file on Linux. Where is it located at on non-Windows OSs?
Asked
Active
Viewed 7,611 times
2 Answers
5
You can always get the profile location on any OS by executing $PROFILE at the command prompt. This will output the location of the profile file.
For example, on my Mac
> $PROFILE
/Users/robb/.config/powershell/Microsoft.PowerShell_profile.ps1
Robb Vandaveer
- 151
4
Following the XDG Base Directory specification the user's profile file is located at:
~/.config/powershell/profile.ps1
dargmuesli
- 581