> ## Content Index
> Fetch the complete content index at: https://www.jonathancreamer.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Making powershell pretty
- URL: https://www.jonathancreamer.com/making-powershell-pretty/
- Published: 2021-07-21T19:17:34.000Z
- Updated: 2021-07-23T16:07:05.000Z
- Author: Jonathan Creamer
- Tags: Powershell, Windows, Command Line

For the first time in a long time, Windows has re-entered my life now that I work at Microsoft.

In macOS land, I use iTerm and oh-my-zsh to make a pretty shell environment with all the colors and such, so when I got to Windows again and lanched into the blue Powershell Window, I figured there had to be something better...

This is what Powershell looks like now!

![](https://storage.ghost.io/c/42/63/4263df8f-a33f-403d-aa31-ba113a54d1b7/content/images/2021/07/image.png)

### Windows Terminal

The first thing to make sure you have installed is the [Windows Terminal](https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab&ref=jonathancreamer.com).

That is a fantastic product, and even has built in support for WSL, CMD, Azure, and launching into Ubuntu or whatever your Linux Environment is...

![](https://storage.ghost.io/c/42/63/4263df8f-a33f-403d-aa31-ba113a54d1b7/content/images/2021/07/image-1.png)

Another #protip is you can hold Ctrl + Shift when launching Windows Terminal and it'll open as an Administrator.

Windows Terminal is super easy to configure as well, and there are themes for it as well at [\>\_TerminalSplash - Windows Terminal Themes](https://terminalsplash.com/?ref=jonathancreamer.com) or [Windows Terminal Themes](https://windowsterminalthemes.dev/?ref=jonathancreamer.com). You simply copy the JSON from those sites, and open the Windows Terminal Settings and Click "Open JSON File"...

![](https://storage.ghost.io/c/42/63/4263df8f-a33f-403d-aa31-ba113a54d1b7/content/images/2021/07/image-2.png)

### Oh My Posh

The tool that adds the bar at the bottom of the Powershell window is called [Oh My Posh](https://ohmyposh.dev/?ref=jonathancreamer.com) of course inspired by [oh-my-zsh](https://ohmyz.sh/?ref=jonathancreamer.com) for mac / linux.

To install, simply run...

```Powershell
Install-Module oh-my-posh -Scope CurrentUser
```

Then you can list all the themes with...

```Powershell
Get-PoshThemes
```

Once you find one you like, you can edit your `$PROFILE` in your editor of choice, e.g. `notepad $PROFILE`, `code -a $PROFILE`.

And you can set your theme up with...

```Powershell
Set-PoshPrompt -Theme jandedobbeleer
```

The last thing you'll more than likely also have to do is download the right fonts that supports "Powerline" fonts, the Oh My Posh [docs ](https://ohmyposh.dev/docs/fonts?ref=jonathancreamer.com)talk about that. More than likely, you'll choose a font from [Nerd Fonts](https://www.nerdfonts.com/?ref=jonathancreamer.com), and update your Windows Terminal settings to point to the new font.

```json
"profiles": 
    {
        "defaults": 
        {
            "fontFace": "MesloLGL Nerd Font"
        }
     }
```

It'll even show you what version of node you're in as well as many other what they call "Segments"...

![](https://storage.ghost.io/c/42/63/4263df8f-a33f-403d-aa31-ba113a54d1b7/content/images/2021/07/image-3.png)

There ya go! You'll be the envy of all your Windows code demos in meetings going forward.