

To implement the font in PowerShell, open windows Terminal settings (button items settings) and edit the profiles.json file by adding the in the default section or in the shell section of your choice, the setting: “FontFace”: “Cascadia Code PL” Download CascadiaPL.ttf and have the Windows 10 pop-up menu “installed”on the file. I advise you to use the font “Cascadia PL” available at. To correct this problem, a suitable font should be installed in Windows and its use by the shell set up. You’ve probably noticed the presence of square characters with arrow inside in the prompt text if you’ve reproduced the previous installation steps. This step is important because the installed modules use extended glyphs for the display of the prompt (posh-git).

Here’s the list of pre-defined themes from oh-my-posh (images and list from Jan De Dobbeler ) It should be noted that other predefined prompt themes exist and you just have to replace the name in the previous examples to change the theme. In previous examples, reference was made to the theme called Paradox. To do this, launch the command notepad $PROFILE command from PS and fill the file (it is created if it doesn’t exist yet) as follows, then save it. You still have to think about editing the shell’s user profile to keep this setting with each PowerShell launch. That’s it! The PowerShell’s prompt was replaced by the prompt with a theme. To see the colors of the theme you have the Commands Show-ThemeColors and Show-Colors powershell prompt with theme You can check the current configuration of oh-my-posh with the $ThemeSettings command and posh-git configuration with the $GitPromptSettings command. PSGallery’s repository will also have to be approved to allow installation. You will eventually be asked to install the NuGet supplier for PowerShellGet (in this case accept installation). Install-Module oh-my-posh -Scope CurrentUser Install-Module posh-git -Scope CurrentUser These commands are to be launched from a PowerShell 6.2.3 version console or later. Git for Windows must be installed (downloadable from ).Windows Terminal must be installed (version 18362.0 or higher (v1903-Build 2.0), ARM64 architecture, 圆4, x86).

Installation of posh-git and oh-my-posh for PowerShell
