hackf5/powershell-profile-alias

Unable to fine type [sring]

rcmosher opened this issue · 0 comments

Testing this out for the first time and was met with this series of errors when trying to register.

> Register-ProfileAliasInProfile
InvalidOperation: Unable to find type [sring].
InvalidOperation: You cannot call a method on a null-valued expression.
InvalidOperation: You cannot call a method on a null-valued expression.
Set-Content: Could not find a part of the path 'C:\Users\me\OneDrive - AName\Documents\PowerShell\Microsoft.PowerShell_profile.ps1'.

The "sring" portion appears to be a typo here:

$profileContent = (Test-Path $Path) ? (Get-Content -Path $Path -Raw) ?? [string]::Empty : [sring]::Empty

No idea if the following lines are stemming from that or their own issues.