Very often I'm asked how I customized my Windows Terminal. This repo will walk you through step-by-step how to make your terminal look like the one I use. Fisrt of all, let's have look at my Windows Terminal.
Now, let's start customizing the terminal. First things first , let's go through the prerequisites.
- Windows Terminal
- Cascadia Code
- Dependencies
- Git
- DotFetch
Definitely if you haven't installed Windows Terminal yet, install it from Microsoft Store. Thats the first thing you need to do.
Download the Cascadia Code font latest version and install it on your computer. This should be very straight forward. Using other fonts might create gibberish on the terminal and break the design.
If you want to have colorful themes in your terminal, you need to install some dependencies. Install posh-git from here and oh-my-posh from here. You are allowed to use any version of these dependencies. But using the latest version is a recommended.
Download the Git for Windows and install and configure it on your system properly. You can check out this video to see how to install and configure Git properly on Windows.
Make a folder named Workspace in your D:\ Drive.
Head over to DotFetch repo and go through the README , and follow the instructions to install it properly on your system.
Open PowerShell & type notepad $profile and hit Enter. This will open a text file in Notepad. Put below lines inside the file and save.
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme Iterm2
Write-Host(" =========> Wellcome || Windows PowerShell <=========")
dotfetch
- Hit
Windows+Rto open the run command. - Paste
%USERPROFILE%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalStateand hit enter. This will bring up a file explorer. - Now download the
settings.jsonfile from here and paste it in the file explorer.
- To see the list of available themes , run
Get-PoshThemeson terminal. - To customize color scheme of your favourite theme , navigate to
C:\Program Files\WindowsPowerShell\Modules\oh-my-posh\themes, open the theme file you want to customize in your preferred code editor and modify the color scheme. Make sure to save the changes you made.
Those who wants to customize the default color scheme of posh themes , might be interested to have look at how it is done. I've done one & here it is. Check out the modified iterm2.omp.json file here.
Once you are done , re-launch your Windows Terminal and you should be good to go.
.png)
.png)