Gre*_*uff 1 powershell posh-git
我试图安装Posh-Git以使用带有Powershell的ssh.
我按照这里的说明操作
此处的文件未经过数字签名,因此我更改了执行策略以进行安装.然后我(无论出于什么原因)决定不使用它,所以我删除了文件.
现在每当我启动Powershell时,我都会收到类似下面的错误:
The term 'C:\xxx\xxx\profile.example.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program.
Run Code Online (Sandbox Code Playgroud)
每次启动Powershell时如何阻止此错误消息出现?
4c7*_*b41 10
您需要编辑PowerShell配置文件并从那里删除该行.最简单的方法是(从PowerShell中):
notepad $profile
Run Code Online (Sandbox Code Playgroud)
或者您可以$profile
在那里查找您的个人资料并在那里编辑文件.
请参阅此内容以进一步阅读:https://blogs.technet.microsoft.com/heyscriptingguy/2012/05/21/understanding-the-six-powershell-profiles/
归档时间: |
|
查看次数: |
143 次 |
最近记录: |