Setting appearance in bash / mintty

Fergus Daly fergusd84@outlook.com
Fri Jun 19 11:17:58 GMT 2020


This is a bash question, but it is posed only because I am experiencing a lack of parallel alignment 
between bash and mintty in Cygwin. Hope OK to ask.
The file /etc/minttyrc [or equivalent] [or R-click in the mintty console] can be used to set FG and BG colours, font style and size.
When using mintty, it picks up all of
echo -n $'\e]4; 3;255,  0,  0\a'
echo -n $'\e]4; 6;139, 69, 19\a'
echo -n $'\e]4;10;  0,127,  0\a'
echo -n $'\e]4;12;  0,  0,255\a'
echo -n $'\e]4;14;127,  0,  0\a'
in /etc/bash.bashrc [or equivalent] so that ls shows directories in blue, text files in black,
executables in green, links in dark brown. I daresay other fine and attractive distinctions are available. 
Thus the full working appearance, within mintty, may be set to the user's preference.

For various reasons I have reverted to a bash shell*.
R-click -> Properties to set FG, BG, font, placement, etc.
But the settings above in /etc/bash.bashrc seem to be missed, or maybe interpreted differently.
If missed, can anybody dictate where I should set them?
If interpreted differently, can anybody point me to a recipe book for bash appearance?
Thank you.

* Some odd behaviours in mintty, not mimicked in bash or xterm, when calling a non-Cygwin external
(which admittedly could be the source of the problem).
If/when I can trigger these behaviours entirely within Cygwin, I shall try to describe them here.


More information about the Cygwin mailing list