Fix a broken $Profie location
A couple of days ago I remove Documents from OneDrive which seems to have broken the “Oh my POSH” settings in my various terminals.
PowerShell 7.4.2
PS C:Dev> $home
C:Usersdaniel
PS C:Dev> $Profile
PowerShellMicrosoft.PowerShell_profile.ps1
PS C:Dev>
It looks like $Profle has lost the preceding C:UsersdanielDocumentsPowerShell, so is the way to re-add it, without needing to reinstall PowerShell Core and Windows PowerShell?
A couple of days ago I remove Documents from OneDrive which seems to have broken the “Oh my POSH” settings in my various terminals. PowerShell 7.4.2
PS C:Dev> $home
C:Usersdaniel
PS C:Dev> $Profile
PowerShellMicrosoft.PowerShell_profile.ps1
PS C:Dev> It looks like $Profle has lost the preceding C:UsersdanielDocumentsPowerShell, so is the way to re-add it, without needing to reinstall PowerShell Core and Windows PowerShell? Read More