For developers or anyone who uses Windows Terminal to interact with the shell, whether PowerShell or WSL, this tutorial will help you customize Terminal, which will soon become the default command line experience in Windows 11. called prompt theme engine oh my luxuryYou can make your shell look beautiful with icons, glyphs, colors and more. i have to thank Scott Hanselman, showing you how to customize Windows Terminal in Windows 10/ 11 and all the subtleties that will make it look interesting. So, without further delay, let’s start and learn how to customize Windows Terminal in Windows 10/ 11.
Customize Windows Terminal Like a Professional (2022)
From how to add the acrylic effect to applying the Caskaydia font to your command line experience, we have detailed instructions for customizing the Windows Terminal. We’ve added steps for both PowerShell and Ubuntu (WSL). You can expand the table below and switch to the section you want.
Apply Acrylic Effect to Windows Terminal in Windows 10/ 11
1. First open Microsoft Store and Update Windows Terminal to the latest version.
2. Next, open Windows Terminal and Settings.
3. Here, “Windows PowerShellunder “Profiles” in the left sidebar”Appearance” tab.
4. Scroll down and select “Acrylic” switch. You can also adjust the Acrylic opacity just below. I kept it at 70% but you can adjust the value to your taste. Finally, click “Save” to confirm the changes. You have successfully taken your first step to customize the Windows Terminal.
5. repeat the process For CMD, WSL and other shells you use on your Windows computer. It will add an Acrylic effect to the Windows Terminal.
Adding Caskaydia Cove Font to Windows Terminal
1. After adding the acrylic effect, you need to install the fonts compatible with Oh My Posh. I downloaded Caskaydia Cove Nerd Fontworks well with this third-party customization tool. You can do click here to download the font
2. After downloading the font, unzip it using applications like 7Zip or WinZip and install all fonts. You can choose all fonts -> right click on them -> Show more options -> Install for all users.
3. Now open Windows Terminal and go to Settings. Here, switch to the “Windows PowerShell” section from the left pane and click “Appearance” tab just like we did above.
4. Here, select the newly downloaded font you want to use with the Oh My Posh prompt. I chose”Caskaydia Cove Nerd Font“. Now, click “Save”.
5. repeat this process For all shells you use in Windows 10/11 including WSL/Ubuntu.
Customize PowerShell in Windows Terminal with Oh My Posh
1. Now that you’ve added the acrylic effect and applied a compatible font, it’s time to load the Oh My Posh prompt. By doing so, open Windows Terminal with administrative privileges. To do this, search for Terminal after pressing the Windows key and click the “Open as administrator” option in the right pane.
2. Go to the PowerShell window and run the command below to load the Oh My Posh prompt. Post this press “A” and press Enter to allow the installation.
Install-Module oh-my-posh -Scope CurrentUser
Next up, execute the following command Import Oh My Posh profile. If you get any prompts, press “A” followed by “Enter” to continue the installation.
Import-Module oh-my-posh
4. What to do next Install Terminal Icons. to shout Brandon OlinThe person who developed Terminal Icons for PowerShell. Just run the command below and let the installation complete. Make sure you are running Windows Terminal with administrative privileges before running this command.
Install-Module -Name Terminal-Icons -Repository PSGallery
5. Now Control if everything is working fine, execute the following command. This will bring up the new prompt.
oh-my-posh --init --shell pwsh --config ~/jandedobbeleer.omp.json | Invoke-Expression
6. Everything is working fine so far, but you need to make Oh My Posh your default custom prompt. To do this, run the following command. will give you a wayWhich you need to take notes or copy and paste in Notepad.
$PROFILE
7. Next, navigate to that path and you will find a “Microsoft.PowerShell_profile.ps1” file. Open it with Notepad, add the following lines and save the file. You can now close the Notepad file.
Set-PoshPrompt -Theme jandedobbeleer Import-Module -Name Terminal-Icons
Note: If the Microsoft.PowerShell_profile.ps1 file does not exist in this location, follow the next step.
8. If there is no ps1 file, you can easily create one. Right click on the “WindowsPowerShell” folder and New -> Text Document.
9. Rename Microsoft.PowerShell_profile.ps1
. Make sure there is no .txt extension at the end. The file name must end with .ps1
.
10. Now open the file with Notepad and add the following two lines and save. You can close Notepad now.
Set-PoshPrompt -Theme jandedobbeleer Import-Module -Name Terminal-Icons
11. Go back to the PowerShell window and run the following command. reload profile.
. $PROFILE
12. Finally, close and reopen Windows Terminal. You will now see Oh My Posh set as the default prompt in PowerShell. Acrylic effect, new fonts, icons, glyphs and Oh My Posh prompt in Windows Terminal with PowerShell looks nice.
Customize WSL/Ubuntu in Windows Terminal with Oh My Posh
Once you’ve added the acrylic effect and loaded the fonts, it’s time to customize WSL with Oh My Posh. Here’s how to do it.
1. Open with Windows Terminal administrator privileges.
2nd row, WSL (Ubuntu or other distributions you have installed).
3. Now, before installing Oh My Posh, Suggest to update WSL to the latest packages and dependencies. You may need to enter the WSL’s password to confirm the installation.
sudo apt update && sudo apt upgrade -y
4. After that run the following commands one by one You can customize the Windows Terminal by installing Oh My Posh on WSL. You will need to press the “y” key to allow the installation.
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh sudo chmod +x /usr/local/bin/oh-my-posh
5. Next, run the commands below one by one to download themes
mkdir ~/.poshthemes wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip unzip ~/.poshthemes/themes.zip -d ~/.poshthemes chmod u+rw ~/.poshthemes/*.json rm ~/.poshthemes/themes.zip
6. After doing that, execute the following command to check if the custom prompt is set up properly. This should bring up the new Oh My Posh prompt.
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)"
7. Now run the following command to set Oh My Posh as your default prompt in WSL. will let you Edit bash config file In the nano editor.
nano ~/.bashrc
8. In the nano editor, scroll down using the keyboard arrow keys and “make it less easier for non-text input files, see lesspipe(1)” line. Just below, you need to change the command starting with “eval…”.
9. Now, what you need to do type the following command in Nano editor as it does not support copy and paste. It will look like this:
eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/jandedobbeleer.omp.json)"
10. After that, Press “Ctrl + O” and press Enter to save the changes. Next, press “Ctrl + X” to exit the Nano editor.
11. Finally, run the following command. Reload bash profile. From now on, WSL will install at the Oh My Posh prompt. Enjoy!
. ~/.bashrc
12. In case of some glitches while rendering the glyphs and text, make sure you set them up correctly. Caskaydia Cove Nerd font On the Settings page of the Windows Terminal for Ubuntu/other distributions. This is one of the first things you should customize in Windows Terminal.
13. If you are still facing the problem, Reload bash profile Every time you enter the WSL shell. Run the command below and everything will be fixed. You can also restart your computer to check if the problem is resolved.
. ~/.bashrc
Make Your Windows Terminal Look Beautiful with Oh My Posh
This is how you can customize the Windows Terminal and make it look advanced and beautiful with icons, glyphs, acrylic effect and more. As for the Command Prompt, we tried running it with Clink but were unsuccessful. Anyway, that’s it for us. Follow our linked article if you want to further customize Windows Terminal with themes, background images and colors. And if you have any questions, let us know in the comments section below.