Oh my posh on all windows terminals (vs code integrated terminal too!!)
Vipul Dessai
Posted on July 7, 2022
First install the 'oh my posh' on your windows machine, by either visiting this or use the below command.
winget install JanDeDobbeleer.OhMyPosh -s winget
Install fonts
- go to https://github.com/ryanoasis/nerd-fonts/releases
- search for 'Meslo.zip' and download it
- unzip it and select all, right click and install all
NOTE - you can try any font but 'Meslo' worked well for '1_shell' theme
Install the theme - [official documentation]
- for example I'll use '1_shell' theme
- open the terminal and run the following command ```
oh-my-posh init pwsh --config ~/.1_shell.omp.json | Invoke-Expression
- restart the terminal
## Create a profile for your terminal [[official documentation](https://ohmyposh.dev/docs/installation/prompt)]
- open the terminal
- create a new profile by running the following command
notepad $PROFILE'
or
New-Item -Path $PROFILE -Type File -Force
* this will create a file, so add the below line to it, and save it
oh-my-posh init pwsh | Invoke-Expression
## Modify the settings.json of the terminal
- open the terminal as an admin user
- press CTRL + SHIFT + ,
- this will open or prompt to select your favorite editor for the 'settings.json'
"profiles":
{
"defaults": {
"font":
{
"face": "MesloLGM NF"
}
}
...
- save it
## Modify the settings of VS code integrated terminal
- go to File -> Preferences -> Settings
- search for @feature:terminal font
- add the font 'MesloLGM NF'
- save it (CTRL + S)
That's it, now you are a 10X developer :stuck_out_tongue_closed_eyes:
💖 💪 🙅 🚩
Vipul Dessai
Posted on July 7, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.