I am exploring how to get color coding in the Cygwin terminal.
First, I right click on the Cygwin icon and select "options":
Next, I see the following options panel. However, there are no themes. Instead, there is a button to a "Color Scheme Designer":
When I click on "Color Scheme Designer," I am directed to the following web page (the website interface of a GitHub project--fork on the bottom left) in my browser (Color Scheme Designer):
In the top right corner is a button labeled, "get scheme", which yields the next panel,
If I right click on the buttons in this final panel and click, "copy link," all the color settings are saved in the particular formatting of the button on my clipboard. Then I can paste it into a file.
It is at this last step where I am stuck.
How do I get one of these color schemes into the Cygwin theme list? Note that there is a button next to the "Color Scheme Designer" (picture 2) that is greyed out, named "Store"... so there seems to be some functionality where I can store one of these custom color schemes so that it shows up in the "Theme" dropdown?
Going back to that modal that shows up after you click the "Get Scheme" button, you can drag the ".minttyrc" button towards the drop down box in the terminal's options dialog. You can then type in a name for the theme in the drop down box itself and click the "Store" button to make it available on that drop box in the future. Finally, you need to click "Save" or "Apply" to have the theme applied on your terminal.
You are almost there! Here's my solution, I'm sure there are other ways to achieve this. Note that the solution assumes that your cygwin install included the mintty terminal emulator (installed by default in recent versions of cygwin).
1) Right click on the .minttyrc
button and save the link as a text document on your computer.
2) Open the text document and copy its contents to your clipboard. The file might look something like this:
BackgroundColour=13,25,38
ForegroundColour=255,255,255
CursorColour=255,255,255
Black=0,0,0
BoldBlack=62,62,62
Red=217,20,46
BoldRed=246,162,173
Green=46,217,20
BoldGreen=173,246,162
Yellow=217,191,20
BoldYellow=246,235,162
Blue=20,46,217
BoldBlue=162,173,246
Magenta=191,20,217
BoldMagenta=235,162,246
Cyan=20,217,191
BoldCyan=162,246,235
White=217,217,217
BoldWhite=255,255,255
3) Open cygwin and go to your home directory by typing cd ~
4) Type ls -a
to see the various hidden configuration files that are stored in your home directory. In particular, you should see a file called .minttyrc
.
5) Open .minttyrc
with your favorite text editor and copy the code snippet that you got in step 2)
6) Restart cygwin or start another instance of the terminal and the new color scheme should be in effect.
In addition to jegudmunds answer, here is how to add themes:
cd ~
mkdir .mintty
and mkdir .mintty/themes
to create a directory called ~/.mintty/themes
See https://github.com/mintty/mintty/wiki/Tips#using-colour-schemes-theme for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With