【问题标题】:Prevent Windows Terminal from displaying the current directory阻止 Windows 终端显示当前目录 【发布时间】:2021-10-23 23:57:22 【问题描述】: 是否可以阻止 Windows 终端显示当前目录? 在此示例中为PS C:\Users\User\Desktop\projects>。 如果有,怎么做? 【问题讨论】: 标签: windows-terminal 【解决方案1】: 是的,您可以根据需要自定义提示 见https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_prompts?view=powershell-7.1 另请参阅https://github.com/Jaykul/PowerLine 了解更多高级选项 【讨论】: