Installing Powerline fontts
How to test if Powerline is correctly installed in Cmder / ConEmu:
- Add the following function to your powerline $PROFILE:
function U
{
param
(
[int] $Code
)
if ((0 -le $Code) -and ($Code -le 0xFFFF))
{
return [char] $Code
}
if ((0x10000 -le $Code) -and ($Code -le 0x10FFFF))
{
return [char]::ConvertFromUtf32($Code)
}
throw "Invalid character code $Code"
}
stole from here [https://mnaoumov.wordpress.com/2014/06/14/unicode-literals-in-powershell/].
- Run the following script inside PowerShell:
Write-Host "$(U 0xE0B0) $(U 0x00B1) $(U 0xE0A0) $(U 0x27A6) $(U 0x2718) $(U 0x26A1) $(U 0x2699)"
You should see something like the following: