DEV Community

Cover image for Terminal Setup - Make your Windows terminal awesome
Anthony Lagrede
Anthony Lagrede

Posted on • Updated on

Terminal Setup - Make your Windows terminal awesome

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.
windows terminal

Prerequisites

Install windows terminal

Install git bash
gitbash option
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
            }
        }
    }
}
Enter fullscreen mode Exit fullscreen mode

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

Define environment variables
user env var

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)"
Enter fullscreen mode Exit fullscreen mode

In Windows terminal preferences, select Git Bash as default terminal
Windows terminal pref

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)

Collapse
 
anderssonpeter profile image
Peter

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!

Collapse
 
alagrede profile image
Anthony Lagrede

Great 😊 Thank you for sharing.

Collapse
 
javifelices profile image
Javi Felices

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.

Collapse
 
codedrian profile image
Adrian Gaile Singh

Cool! Just wondering, is it applicable in Windows 11?

Collapse
 
alagrede profile image
Anthony Lagrede • Edited

Hi Adrian, I haven't Windows 11 but it should work for Windows 11.

Collapse
 
summerkiflain profile image
Summer Kiflain • Edited

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.

Thread Thread
 
alagrede profile image
Anthony Lagrede

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

Thread Thread
 
summerkiflain profile image
Summer Kiflain • Edited

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

Collapse
 
aoyewol2 profile image
Ashley

I use Windows 11 and Oh My Posh works just fine!