1

Using PowerShell 5.1 in vscode. There are a lot of profile.ps1 files on my system.

  • This will probably enlighten you ;-) . – Olaf May 23 at 23:03
2

To know where your profile should be, you can simply query the $profile variable:

> $profile

> # It might not exist. Then you can just create it
> if (!(Test-Path $profile)) { "Write-Host 'Hello from your new profile'" > $profile; "Profile file created in $profile" }
| improve this answer | |
  • Or just New-Item $PROFILE – schuelermine May 24 at 0:21
  • @Carlos Garcia I'm sure this looks like a simple answer to you but I've spent hours trying to make sure where the colors are coming from. Partly because I've got a bunch of test installs for 5.1, 7, 7.1. and an effort at local install. Thank you for your help Carlos! – Lesjtay May 24 at 3:47
  • @schuelermine Your answer worked just fine and certainly wins the Ockhem's Razor test however after all I've been through trying to nail this down the reassuring closed loop that Carlos gave got the answer mark. – Lesjtay May 24 at 3:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy2020欧洲杯时间表

Not the answer you're looking for? Browse other questions tagged or ask your own question.