Closed isaacrlevin closed 4 years ago
How do I set the prompt, so that the git stuff is displayed? Plain PS seems to not have it ;)
This is on my Windows box. Top image: Git bash, bottom image PowerShell. I pasted a line with relevant characters from my Linux console into both.
I wonder, why is it rendering as multiple chars in your screenshots, seems the unicode stuff is not working correctly? Should be one char, maybe unknown, but multiple?
Hmm, this is also not working with Cascadia PL. Copy triangular thing from CharacterMap, paste into PowerShell.
My Windows skills erode away...
@isaacrlevin Are you using oh-my-posh for your font theming?
I'm using just posh git and a custom powershell profile
@isaacrlevin I had the same issue, but fixed it by installing both posh-git and oh-my-posh.
@KillDozerX2 same issue with bot installed
Funny
How bad is that? PowerShell does not reder the glyphs when you type them, but in the error message they are shown??!
For sure this has nothing to do with the font, but with some PowerShell peculiarity.
Same Window, switched to Lucida Console, where the extra chars are not avail:
Hmm, seems to work (on my machine). I never had anything special installed on that Windows box, just used it to test Delugia on Windows with VisualStudio. Installed oh-my-posh, and voila: I don't know what the missing char in the left is, but the powerline triangular things are there.
What I did (in an admin PS window) was just:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install ConEmu
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
Set-ExecutionPolicy Bypass -Scope Process -Force; Import-Module oh-my-posh
Set-Prompt
I reckon ConEmu is not needed, but it was in the installation manual.
Ah, with Delugia Complete we also see what that strange glyph in the left is:
Can you @isaacrlevin make it work for you with these hints?
Git stuff also works ;)
Edit: Did a Set-Theme Paradox
between both screenshots, this explains the slightly different prompt.
Doesn't work, however the glyph is there in character map and can be pasted into terminal. I assume the encoding on my profile is messed up but it works in ps core
I assume the issue is 'solved' by declaring it an issue of your setup? I'm quite at a loss what happens here.
Please feel free to reopen it, if you think we can do something. It sounded like you now think it can be a problem of your setup.
Tried to get Delugia + Nerd Fonts installed on a new box, but I cannot get it to work in Windows Terminal Powershell. Here is PS Core
and PS
I can open an issue in Terminal, but wanted to see if there is an easy fix for this