The content of the blog you are reading right now is stored in a Git repository. Every time I create an article, I create a new Git Branch to isolate the changes. To generate the skeleton of the articles, I use the command line (well, I generally use ); in particular, given that I’m using both Windows 10 and Windows 11 - depending on the laptop I’m working on - I use the , which allows you to define the style, the fonts, and so on of every terminal configured in the settings. PowerShell Integrated Terminal The : no info is shown except for the current path - I want to customize the appearance. default profile is pretty basic I want to show the status of the repository, including: Git repository name branch name outgoing commits There are lots of articles that teach how to use OhMyPosh with Cascadia Code. Unfortunately, I couldn’t make them work. In this article, I teach you . It’s a I wrote while installing it on my local machine. I hope it works for you as well! how I fixed it on my local machine step-by-step guide Step 1: Create the $PROFILE file if it does not exist In PowerShell, you can customize the current execution by updating the file. $PROFILE Clearly, you first have to . check if the profile file exists Open the PowerShell and type: $PROFILE # You can also use $profile lowercase - it's the same! This command shows you the . The file, if it exists, is stored in that location. expected path of this file In this case, the file should be available under the folder . In my case, it does not exist, though! $Profile C:\Users\d.bellone\Documents\WindowsPowerShell Therefore, you must create it manually: head to that folder and . create a file named Microsoft.PowerShell_profile.ps1 Note: it might happen that not even the folder exists. If it’s missing, well, create it! WindowsPowerShell Step 2: Install OhMyPosh using Winget, Scoop, or PowerShell To use , we have to - of course - install it. OhMyPosh As explained , there are , depending on the tool you prefer. in the official documentation three ways to install OhMyPosh If you use , just run: Winget winget install JanDeDobbeleer.OhMyPosh -s winget If you prefer , the command is: Scoop scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json And, if you like working with , execute: PowerShell Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1')) I used , and you can see the installation process here: Winget Now, to apply these changes, you have to . restart the PowerShell Step 3: Add OhMyPosh to the PowerShell profile Open the file and add the following line: Microsoft.PowerShell_profile.ps1 oh-my-posh init pwsh | Invoke-Expression This command is executed every time you open the PowerShell with the default profile, and it initializes OhMyPosh to have it available during the current session. Now, you can save and close the file. . Hint: you can open the profile file with Notepad by running notepad $PROFILE Step 4: Set the Execution Policy to RemoteSigned Restart the terminal. In all probability, you will see an error like this: The error message The file is not digitally signed. You cannot run this script on the current system <path>\Microsoft.PowerShell_profile.ps1 means that PowerShell does not trust the script it’s trying to load. To see which Execution Policy is currently active, run: Get-ExecutionPolicy You’ll probably see that the value is . AllSigned To enable the execution of scripts created on your local machine, you have to , using this command by : set the Execution Policy value to RemoteSigned running the PowerShell in administrator mode Set-ExecutionPolicy RemoteSigned Let’s see the definition of the Execution policy as per : RemoteSigned SQLShack’s article This is also a . This policy dictates that any script that was not created on the system that the script is running on, should be signed. Therefore, . safe PowerShell Execution policy to set in an enterprise environment this will allow you to write your own script and execute it So, yeah, feel free to proceed and set the new Execution policy to have your PowerShell profile loaded correctly every time you open a new PowerShell instance. Now, OhMyPosh can run in the current profile. Head to a and notice that… It’s not working!🤬 Or, well, we have the Git information, but we are missing some icons and glyphs. Git repository Step 5: Use CaskaydiaCove, not Cascadia Code, as a font We still have to . install the correct font with the missing icons We will install it using , a package manager available for Windows 11. Chocolatey To check if you have it installed, run: choco -v Now, to install the correct font family, and run: open a PowerShell with administration privileges choco install cascadia-code-nerd-font Once the installation is complete, you must tell Integrated Terminal to use the correct font by following these steps: Open the page (by hitting ) Settings CTRL + , select the profile you want to update (in my case, I’ll update the default profile) open the section Appearance under Font face, select CaskaydiaCove Nerd Font Now close the Integrated Terminal to apply the changes. Open it again, navigate to a Git repository, and admire the result. Further readings The first time I read about OhMyPosh, it was on Scott Hanselman’s blog. I couldn’t make his solution work - and that’s the reason I wrote this article. However, in his article, he shows how he customized his own Terminal with more glyphs and icons, so you should give it a read. 🔗 My Ultimate PowerShell prompt with Oh My Posh and the Windows Terminal | Scott Hanselman’s blog We customized our PowerShell profile with just one simple configuration. However, you can do a lot more. You can read Ruud’s in-depth article about PowerShell profiles. 🔗 How to Create a PowerShell Profile – Step-by-Step | Lazyadmin One of the core parts of this article is that we have to use as a font instead of the (in)famous . But why? CaskaydiaCove Cascadia Code 🔗 Why CaskaydiaCove and not Cascadia Code? | GitHub This article first appeared on Code4IT 🐧 Finally, as I said at the beginning of this article, I use Git and Git Branches to handle the creation and management of my blog articles. That’s just the tip of the iceberg! 🏔️ If you want to steal my (previous) workflow, have a look at the behind-the-scenes of my blogging process (note: in the meanwhile, a lot of things have changed, but these steps can still be helpful for you) 🔗 From idea to publishing, and beyond: how I automated my blogging workflow with GitHub, PowerShell, and Azure | Code4IT Wrapping up In this article, we learned how to install OhMyPosh in PowerShell and overcome all the errors you (well, I) don’t see described in other articles. I wrote this step-by-step article alongside installing these tools on my local machine, so . I’m confident the solution will work Did this solution work for you? Let me know! 📨 I hope you enjoyed this article! Let’s keep in touch on or ! 🤜🤛 Twitter LinkedIn Happy coding! 🐧 Also published . here