File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,16 @@ fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
177177```
178178
179179- For macOS/Linux, the profile is located at ` ~/.config/powershell/Microsoft.PowerShell_profile.ps1 `
180- - On Windows to edit your profile you can run this in a PowerShell
180+ - For Windows location is either:
181+ - ` %userprofile%\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 ` Powershell 5
182+ - ` %userprofile%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 ` Powershell 6+
183+ - To create the profile file you can run this in PowerShell:
181184 ``` powershell
182- notepad $profile
185+ if (-not (Test-Path $profile)) { New-Item $profile -Force }
186+ ```
187+ - To edit your profile run this in PowerShell:
188+ ``` powershell
189+ Invoke-Item $profile
183190 ```
184191
185192#### Windows Command Prompt aka Batch aka WinCMD
You can’t perform that action at this time.
0 commit comments