Trying to create a source alias or function to the PowerShell . builtin
I'm trying to create a source alias or function to the PowerShell . builtin. Creating an alias to . does not work : PS C:\> Set-Alias source . PS C:\> source $profile.CurrentUserAllHosts source : The term '.' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + source $profile.CurrentUserAllHosts + ~~~~~~ + CategoryInfo : ObjectNotFound: (.:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS C:\> I
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.