Skip to content

Instantly share code, notes, and snippets.

@dact221
Last active May 27, 2024 14:16
Show Gist options
  • Save dact221/18900603b8c80256dc45e3e0e11a1af8 to your computer and use it in GitHub Desktop.
Save dact221/18900603b8c80256dc45e3e0e11a1af8 to your computer and use it in GitHub Desktop.

Add the /nologo option to supress the version and use my custom welcome message:

"C:\Program Files\PowerShell\7\pwsh.exe" /nologo
write-host "󰌢 Windows 11 Home"
write-host "󰞷 PowerShell $($PSVersionTable.PSVersion)"
write-host
Import-Module -Name Terminal-Icons
oh-my-posh init pwsh --config ~/.mytheme.omp.json | Invoke-Expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment