我一直使用 Phil Haack 安装 Posh-Git 的方法,使用以下 PowerShell 命令:
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
install-module posh-git
第一行安装PsGet
,第二行Post Git
。我也试过了install-module posh-git
,已经安装了PsGet
。
发生的情况是 Post-Git 提示显示在我安装它的同一个 PS 窗口中,但是当我关闭该窗口并打开另一个窗口时,Post-Git 似乎又消失了。
这是一台新机器,带有新的 Windows 10 Pro。Posh-Git 在我的旧版本上工作,同样适用于 Windows 10 Pro,我知道的唯一区别是新版本是 SSD,这不应该影响这一切。