# Spice up your PowerShell with Starship

I was supposed to do a bunch of stuff in PowerShell, so I was thought let spice up that terminal and not feel so miserable i.e. how to procrastinate with less guilt.

### Install the required font

Install the required [nerd font](https://www.nerdfonts.com/), of course you need to set up the font to be used by PowerShell.

### Install starship

we will be using starship as the prompt, we can install via:

* via chocolatey
    
    `choco install starship`
    
* or, via [msi installer](https://github.com/starship/starship/releases/latest)
    

### Configure PowerShell

Configure your PowerShell to use starship, this can be achieved by editing Microsoft.PowerShell\_profile.ps1.

Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_`[`profile.ps`](http://profile.ps)`1` or `~/.config/powershell/Microsoft.PowerShell_`[`profile.ps`](http://profile.ps)`1`

and you can use notepad to edit Microsoft.PowerShell\_profile.ps1

```powershell
notepad $PROFILE
```

and add the following line

```powershell
Invoke-Expression (&starship init powershell)
```

if that didn’t work, you might don’t have the permission to run unsigned script. Try using this to add permission:

```powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
```

refresh current PowerShell profile

```powershell
. $profile
```

### Configure starship

you can configure starship further by first creating the config file

```powershell
New-Item -ItemType Directory -Force ~/.config;New-Item -ItemType file ~/.config/starship.toml;
```

This newly created directory and config file can be found at the user's home directory, e.g. *C:\\Users\\&lt;UserName&gt;.*

and I use preset from [starship](https://starship.rs/presets/pastel-powerline) by running

```powershell
starship preset pastel-powerline -o ~/.config/starship.toml
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1739748286324/8495907d-bb83-4f8c-9ad6-d856b27204b2.png align="center")

Now to stop procrastinating and do some work! right after I did the same thing with cmd and my WSL bash.
