Customizing your Windows terminal with OH MY POSH.

Juan Carlos Santiago
4 min readJul 7, 2021

Currently, the terminals or shells, have become one of the favorite tools of many developers, let’s talk in Mac, Linux, and Windows environments with its well-known CMD, today we will stop using the old and boring CMD to make way for the new terminal of Microsoft, called Windows Terminal.

The first thing we need to do is download the new terminal within the Microsoft Store.

Within this screen, we look for “Windows Terminal”

We install the first option, once the installation is finished, we will see the following screen.

Windows Terminal allows us to open tabs with different types of terminals, including the CMD.

By default, we can assign some themes that are already preloaded, for them we go to Settings → Profiles → PowerShell, in the Appearance tab we can see the configuration of our main themes, typography, acrylic effect, etc.

For this example I will use the theme called “One Half Dark” and the font called FiraCode, which we will take from Nerdfonts, we will get to them later.

Now you may wonder, what do I use “Oh My Posh” for?

https://ohmyposh.dev/

OH MY POSH is a tool that allows us to configure our cursor on our terminal.

Great no! I already look like a pro!

Let’s install our oh my posh in our terminal, for we execute the following command within our terminal.

> Install-Module oh-my-posh -Scope CurrentUser

We give yes to everything and that’s it.

Next step let’s see the list of themes that the oh my posh added to us, for we will execute the following command.

> Get-PoshThemes

Now we see the list of all the themes that we have ready to be installed.

In this example I will use the theme iterm2, you can choose the one you like the most.

Now let’s assign our theme to our terminal with the following command.

> Set-PoshPromt -Theme iterm2

Now let’s look for our Font because if we don’t install it, we will see rare characters, let’s go to it.
https://www.nerdfonts.com/

Let’s find and download the font that you like, once downloaded we unzip it and proceed to install it, selecting all the files and right-clicking and selecting Install.

Perfect! It’s time to assign it, for we go to configuration, we select the PowerShell profile → appearance → Font types, there we must select the font that we installed.

Ready! Now we have our terminal with a more Pro look.

But something happens, if I close my terminal and reopen it, it does not have my configuration, so let’s fix that.

We will create a file with the configuration so that it accepts our theme in all the tabs.

Let’s run the following command.

> code $ PROFILE

Now inside this file, we will add the following:

Import-Module oh-my-posh
Set-PoshPromt -Theme iterm2

We save and close the changes to our file. We open a new terminal and we will see that it already opens our configuration.

Conclusion,

Work is not fought with good design, there is an infinity of customizations that we can make to our work tools, now it is your turn to delve deeper into the subject and give a more pro look.

Thanks for reading

--

--

Juan Carlos Santiago
Juan Carlos Santiago

No responses yet