From a5a497b7e2c4cc615fedf366f9eeab4e322443ed Mon Sep 17 00:00:00 2001 From: Megamannen Date: Tue, 12 Mar 2024 09:50:33 +0100 Subject: [PATCH] README.md - Simplified Windows PowerShell setup (#1047) * Update README.md docs: replaced section about profile location on Windows In now uses the built in env variable $profile * Update README.md style: styled section about windows profile --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f0349a6..1f16113 100644 --- a/README.md +++ b/README.md @@ -174,10 +174,10 @@ fnm env --use-on-cd | Out-String | Invoke-Expression ``` - For macOS/Linux, the profile is located at `~/.config/powershell/Microsoft.PowerShell_profile.ps1` -- On Windows, PowerShell comes pre-installed, but there are two versions of it. [Read more about it here](https://learn.microsoft.com/en-us/powershell/scripting/windows-powershell/install/installing-windows-powershell). The profile is located at different places depending on which version you're using: - - Built in PowerShell (aka "Windows PowerShell"): `~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1` - - The newer, PowerShell >= 7, that's not built in: `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` - +- On Windows to edit your profile you can run this in a PowerShell + ```powershell + notepad $profile + ``` #### Windows Command Prompt aka Batch aka WinCMD fnm is also supported but is not entirely covered. [You can set up a startup script](https://superuser.com/a/144348) and append the following line: