Microsoft has a great resource with some examples to help you get started.Įssentially, you add your own scheme with the hex string for the colors you want into the schemes section, then use this as you would in the first section to add the theme to your shells. If you're feeling particularly creative you can build your own.
The built-in themes aren't the only ones you can use in Windows Terminal.
Chnage them color in bash shell for windows how to#
How to add custom themes to Windows Terminal Once you've added the theme, simply save the file and Windows Terminal will update before your eyes. The first and most obvious way to improve your BASH. I try to use color on the command line, because color makes the output more useful and intuitive. There is no need to toil away in gray and black for eternity, here are 3 way to pimp your BASH terminal. Note, too, that if your theme is not the final line you must remember to add a comma at the end of its line. I spend most of my time working in Unix environments and using terminal emulators. Here, we will talk about WSL (Windows Subsystem for Linux) to get Linux Bash shell on Windows and run Linux commands without installing a Virtual Machine. Since there is no Virtual Machine instance, no system overload. So, for example, to amend PowerShell 7 to have a One Half Dark theme, your settings would look something like this: "hidden": false, With Windows 10, you have an additional feature to run Linux on Windows without actually having a Virtual Machine. In Windows Terminal as standard you can choose any of the following themes: It will follow this template: "colorScheme": "Your Chosen Color Scheme"
The settings.json file will open up in your default text editor.įrom here on out you need to add the theme information to whichever shell you want to change.
Well cover the basics of escape characters, using them to clear the screen and set foreground and background colors, and how to get them working in Windows using the colorama package. To get a feel for things, changing to one of the stock themes is easy. This tutorial covers how to use standard ANSI escape codes to colorize and style terminal output.