I recently discover Windows have an awesome fully customizable terminal even on Windows 10. Here I'll show you how to do the same for your computer.
The final result
This is the end result based on the beautiful Oh My Posh. Easy to configure and modify. Optimized to work as a developer.
Prerequisites
Install windows terminal
Install git bash
Verify the option Add Git Bash profile to Windows terminal is selected
Oh My Posh
Install the Meslo LGM NF fonts
In Windows Terminal open the configuration with CTRL + SHIFT + ,
Add the following conf to select font and adjust the transparency of the terminal
{
"profiles":
{
"defaults":
{
"font":
{
"face": "MesloLGM NF",
"fontSize": 10,
"acrylicOpacity": 0.9,
"useAcrylic": true
}
}
}
}
Then Install Oh My Posh (Personally I had to install the direct binary on my old Windows)
Download the latest release of ohmyposh for your system (for me install-amd64.exe):
https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v6.45.0
In ~/.bashrc
select the theme to use:
eval "$(oh-my-posh --init --shell bash --config ~/AppData/Local/Programs/oh-my-posh/themes/jandedobbeleer.omp.json)"
In Windows terminal preferences, select Git Bash as default terminal
This is my personal installation, I extracted the installation steps to show you how it is really simple. I recommend you to read the official documentation.
And voilà
I hope this small tutorial will help you to improve your Windows setup.
Top comments (9)
I have started a project that I think would be a great fit (it's not done yet but it is functional)
github.com/AnderssonPeter/PowerType it gives you autocomplete for cli tools, currently it only supports a subset of git.
Would love feedback!
Great 😊 Thank you for sharing.
Hello and thanks for the post.
I use Git Bash with oh-my-posh and I am very happy, the most would be some autocomplete, I would add a great push, I have seen things for macOS, or the tool that has been shared from PowerType, I hope we will soon have something like that available.
A greeting and thank you.
Cool! Just wondering, is it applicable in Windows 11?
Hi Adrian, I haven't Windows 11 but it should work for Windows 11.
Doesn't work on Windows 11, paths are not right. it installs oh-my-posh in some other directory, no idea how to follow rest of the guide, would love someone to explain how to do this on windows 11.
Hi Summer Kiflain,
I just updated the post to add the direct link to the ohmyposh binary (Should work everywhere):
github.com/JanDeDobbeleer/oh-my-po...
Install the correct binary for your system and follow the steps outlined.
Cheers
Thanks for replying, I have installed it from the given URL, install-arm64.exe worked for, its installed in the correct path and environmental variables are loaded correctly but, that eval statement in .bashrc doesn't work in windows 11.
bash: /c/Users/XXXXXX/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh: cannot execute binary file: Exec format error
I use Windows 11 and Oh My Posh works just fine!