Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我安装了 cmder 并将它与 Powershell 和 posh-git 一起使用。posh-git 将 git 信息放在 Lambda 之后,将光标放在 git 信息之后,没有任何空格:
如何更改此设置以使 Lambda 出现在 git 信息之后?我已经玩过 wtrh$PrePrompt和$PostPromptinconfig\user_profile.ps1但这只会影响 git 信息之前的任何内容。
$PrePrompt
$PostPrompt
config\user_profile.ps1
使用全局$GitPromptSettings变量在 中设置提示后缀posh-git:
$GitPromptSettings
posh-git
$GitPromptSettings.DefaultPromptSuffix = 'λ'