This way the oh-my-posh module is loaded when the PowerShell is started and the theme is set to paradox. In your profile add the following 3 lines at the end Import-Module posh-git #Optional - only if you are using Git We are going to start with the PowerShell profile, to open your profile you can simply enter the following command in the terminal: notepad $PROFILE So we got now everything installed, now it’s time to edit the Windows Terminal and PowerShell profiles. Make sure you download the because this also includes these fancy Powerline symbols that we are going to use later. You can download the Nerd Fonts here from this Github repo. Now at the moment, they are talking about adding these fonts by default in Windows Terminal, but for now, we will have to install these manually. These fonts are used for all the icons and symbols in PowerShell. The next step is to install the Nerd Fonts. You might get a warning, but you can safely click it away. Install-Module oh-my-posh -Scope CurrentUser Install-Module posh-git -Scope CurrentUser #OPTIONAL If you are using GIT, then you can also install POSH-Git. This is the theming engine for PowerShell. The next step is to install the PowerShell module oh-my-posh. Installing oh-my-posh, Nerd Fonts, and POSH-Git So make sure you make a backup of your current profile and delete everything that is it. The structure for the profiles.json is changed starting from version 0.5. If you have been using Windows Terminal from the beginning, you can better clear out your profiles.json. ![]() Now, this is pretty easy, just go to the Windows Store and download and install it.īy using the Windows Store updates for Windows Terminal will automatically be installed. ![]() If you don’t have Windows Terminal already installed then you should, of course, start with installing it. It’s intended use is for ConEmu, but it works for PowerShell in general, so it can also be used with Windows Terminal. I noticed a PowerShell module, oh-my-posh, that is a theme engine for PowerShell. But in this article, we are going to take it a step further. I have written before about the new Windows Terminal and shared some tips on styling it. But this year I started with customizing my Windows Terminal. ![]() Normally I start a new year with cleaning up my desktop, getting rid of all the crap that I stored on it the last 12 months or so.
0 Comments
Leave a Reply. |