- Install the windows terminal from store
- Download the OhMyPosh by running below command in Windows Terminal (Make sure Terminal is using Windows Powershell)
winget install JanDeDobbeleer.OhMyPosh -s winget
if failed to initiate, go to windows store and install app installer. Below picture for reference-
- Download the DaddyTimeMono NF font or any other Nerd font
- Make the downloaded font in settings of terminal. Pressing
Ctrl+Shift+,
will open the settings.json file. add below lines into"defaults":{}
array
"font": {
"face": "DaddyTimeMono NF"
}
it should be look like this-
...
"profiles": {
"defaults": {
"font": {
"face": "DaddyTimeMono NF"
}
},
"list": [
{
"commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
....
- Restart terminal with Admin privilege
- Edit the profile settings with notepad by running
notepad $PROFILE
- If above command returns below error, that means profile setting file is not present. To make one, run -
New-Item -Path $PROFILE -Type File -Force
- Now edit the profile by
notepad $PROFILE
and save the file after puttingoh-my-posh init pwsh | Invoke-Expression
in the profile. - Run
oh-my-posh init pwsh | Invoke-Expression
, the shell should be start working immediately. - If this returns error saying running script is disabled in this system, run
Set-ExecutionPolicy RemoteSigned
- Load the new profile with command
. $PROFILE
- Restart the terminal and enjoy !