- 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 wingetif 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 $PROFILEand save the file after puttingoh-my-posh init pwsh | Invoke-Expressionin 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 !
-
To add
Open in Terminaloption in windows context menu, create a file anywhere in your computer with a .reg extension (you may create a txt.file and rename the extension to reg). -
Edit the file with notepad or any other text editor and paste and save below code, save and close.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"{9F156763-7844-4DC4-B2B1-901F640F5155}"=-
- Now right click on that file and
Run as administrator