当我启动PowerShell时,它总是以这样的横幅开头:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Loading personal and system profiles took 1025ms.
>>
或在其他环境中从以下开始:
PowerShell v6.0.2
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
>>
我应该在配置文件中添加些什么,以便它在不显示横幅消息的情况下启动?
我在Windows 10 64位上,使用PowerShell 6.0.2。
最佳答案
您可以使用/nologo
参数启动PowerShell以禁用该消息。powershell.exe /nologo
此参数可以添加到Windows终端settings.json
中的PowerShell配置文件中。
关于powershell - 如何在PowerShell中删除横幅消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49840525/