Note: since version 0.1.1 of the module this now works in Windows PowerShell or PowerShell Core.
- Download and install this version of Literation Mono Nerd Font which has been specifically fixed to be recognised as monospace on Windows:
(see this issue for more info: ryanoasis/nerd-fonts#269)
- Modify the registry to add this to the list of fonts for terminal apps (cmd, powershell etc.):
$key = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont'
Set-ItemProperty -Path $key -Name '000' -Value 'LiberationMono NF'
-
Open PowerShell, right click the title bar > properties > Font > select your new font from the list.
-
Install and load Terminal-Icons:
Install-Module Terminal-Icons -Scope CurrentUser
Import-Module Terminal-Icons
Result:
here is my successfully

1、download font https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/CascadiaCode.zip , unzip and install all Caskaydia Cove Nerd Font Complete.ttf
Caskaydia Cove Nerd Font Complete Mono Windows Compatible.ttf
Caskaydia Cove Nerd Font Complete Mono.ttf
Caskaydia Cove Nerd Font Complete Windows Compatible.ttf
2、Install-Module Terminal-Icons -Scope CurrentUser

3、notepad $profile

Import-Module posh-git
Import-Module oh-my-posh
Import-Module Terminal-Icons
Set-Theme Paradox
4、edit register

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont
key: 000
value: CaskaydiaCove NF
5、open powershell


right click powershell left top icon , set font to CaskaydiaCove NF
6、 set windows terminal font to CaskaydiaCove NF
default font still Cascadia Code PL

now my windows terminal is beautiful to use
