powershellpowershell-core

How can I remove the PowerShell start text?


PowerShell starting at version 6 has a Unix-style /etc/issue that mentions a link to the documentation.

PowerShell v6.0.0
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

This is fine, but:

How can I remove some or all of the message? If I remember correctly, PowerShell 5 still had the copyright message, so maybe I can't remove that, but getting rid of the last three lines would still help.


Solution

  • If you are using the new Windows Terminal then:

    1. Go to Settings:

      Windows Terminal Settings

    2. Add the argument -nologo to the PowerShell command line:

      Powershell Command Line