Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.


I use PowerShell a lot in my work and school life, but the dark blue background makes me want to make fun of it.

Today we are going to embellish it with dozens of fancy themes to choose from

To prepare

  1. First we need to download Windows Terminal, open the Microsoft Store search or Github search to download:

  2. Win10 perfect Linux experience (Windows Terminal + Oh-my-ZSH), update Win11, WSL again welcome a quality jump, you can even directly see it in the file management:

  3. To change Windows Terminal transparent acrylic background and font style colors, see my previous article.

By the way, try out the new PowerShell, which is cross-platform and useful

Installation and Modification

First post official Oh My Posh:

  1. Enter the following commands on the command line, and enter Y to confirm:

    Install-Module oh-my-posh -Scope CurrentUser -SkipPublisherCheck
    Install-Module posh-git -Scope CurrentUser
    Copy the code
  2. To modify the configuration file directly:

    notepad $PROFILE
    Copy the code
  3. You will be prompted to create a new file, just copy and paste, save, exit and restart.

    Import-Module posh-git
    Import-Module oh-my-posh
    Set-PoshPrompt -Theme agnosterplus
    Copy the code
  4. You can use get-poshthemes to view all the available themes and modify the third line of the configuration file again:

Some hints

  1. You may not be able to display some ICONS when you open it, because your font does not support it. You can download Nerd Fonts, or download the officially recommended Meslo LGM NF. To use Fonts, you need to modify the Settings file of Windows Terminal, please refer to my last article. I’m using “MesloLGS NF” here.

  2. You can also enter set-poshprompt -Theme to select a Theme.

  3. This theme can also be adapted in VScode by searching for Integrated:font in Settings and changing the font:

  4. It looks like this:

  5. I can’t think of any more for the time being, if you have any questions, please comment and THEN I will add ~

I am Mancuoj, welcome to follow me to exchange learning ~

Beg praise beg collect beg comment! Thanks for watching!