How to hide PowerShell startup advertisement?

Viewed 38

When I using Ubuntu,the first line of terminal is prompt and my command. But on Windows PowerShell,it shows an advertisement firstly each time I run terminal. Is there any method to hide it? I try to add cls command to profile but the effect is quite bad(the screen flicks).

Ubuntu Terminal Windows Terminal PowerShell Advertisement

1 Answers

Add a call to the Clear-Host cmdlet as the last statement in your $PROFILE script:

'Clear-Host' |Add-Content $PROFILE -Force

The profile script will run every time you launch PowerShell, and Clear-Host will then scroll the prompt to the top of the screen buffer, giving you a layout identical to the ubuntu terminal.

Related