# Oh My Posh Installation in a Minute!

## Step 1: Installation

Open a PowerShell prompt and run the following command:

```plaintext
winget install JanDeDobbeleer.OhMyPosh -s winget
```

If you get any installation error use the following command to <mark>force-install:</mark>

```plaintext
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
```

And For Update:

Open a PowerShell prompt and run the following command:

```plaintext
winget upgrade JanDeDobbeleer.OhMyPosh -s winget
```

## Step 2: Installation Prediction Source History

Open a PowerShell prompt and run the following command:

```plaintext
Install-Module -Name PSReadLine
```

## Step 3: For Terminal Icons

For Icons on the terminal, Open a PowerShell prompt and run the following command:

```plaintext
Install-Module -Name Terminal-Icons -Repository PSGallery
```

<mark>INFO</mark>

<mark>To display all icons, we recommend the use of a </mark> [<mark>Hack Nerd Font</mark>](https://ohmyposh.dev/docs/installation/fonts)<mark>.</mark>

```plaintext
oh-my-posh font install
```

## Step 4: Powershell Profile

Now Open a PowerShell prompt and run the following command:

```plaintext
Code $profile
```

and copy and paste the following code

```plaintext
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
Import-Module -Name PSReadLine

Set-PSReadLineOPtion -PredictionSource History
```

<mark>Note: For the Python Developer I would highly recommend that you follow this gist link and copy-paste code from the following gist:</mark>

[https://gist.github.com/iamawmrit/748e53cb77a1d23195877d86a70e0fe0](https://gist.github.com/iamawmrit/748e53cb77a1d23195877d86a70e0fe0)

Now You're good to go!

## Additional Things:

For Fonts click on the following link to download <mark>Hack Nerd Font</mark> And use it on your terminal!

[https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Hack.zip](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Hack.zip)
