Skip to content

Commit 0f03c00

Browse files
docs(readme): improve info about powershell profile (#1337)
* docs(readme): improve info about powershell profile * Update README.md
1 parent 01a2b4d commit 0f03c00

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)