Beautify your Windows Terminal using Nerd Fonts and Oh-My-Posh 💻🎉
- Install Windows Terminal: If you don’t have it installed already, you can download and install Windows Terminal from the Microsoft Store or from the GitHub repository (https://github.com/microsoft/terminal).
- Download Nerd Fonts using the following link https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/FiraCode.zip
- Unzip this folder and select all fonts and click on install
Next up is changing the default themes of our cmd
Settings -> Defaults -> Appearance -> Font Face to FiraCode
Lets add some cool effects to our terminal 😊
Type these commands int the following order
- winget
- winget install JanDeDobbeleer.OhMyPosh -s winget
- oh-my-posh init pwsh — config“$env:POSH_THEMES_PATH\jandedobbeleer.omp.json”
- Get-PoshThemes (This will provide you the list of themes)
Ctrl + Click on any theme this will one the json file of the respective font
At the very end of the terminal you will get a command by which you cab edit the theme of your cmd like -
oh-my-posh init pwsh — config ‘C:\Users\vedantkadam\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json’ | Invoke-Expression (see the pic)
So what you need to do is just and the end change the name of the font that you want for eg — here at the end we have “jandedobbeleer.omp.json” change it to “montys.omp.json” (example)
Woooh you can see your desired theme but wait we are not done yet …..🥸 still the style is not saved yet
Run these commands:-
- New-Item -Path $PROFILE -Type File -Force
- notepad $PROFILE
- Copy the command you used to change theme and paste it in the notepad file which pops up and save the file.
Restart your terminal and you are done 🎉🎉there are many themes you can choose from link is given below :-
If you face any issues you can refer this amazing video which might help you … Enjoy !!!!! 👨💻😊