I want to increase the default font Lucida Console from 9pt to 12pt and adjust the blue color quality. Currently the only way I can find to do it is by right-clicking the Cygwin window and selecting Options & Text and Apply as described in this answer.
I tried to edit .minttyrc
to change the font size and color as suggested here. Settings are shown below. But when I relaunch the Cygwin shortcut the default window reappears.
C:\cygwin64\home>cat .minttyrc
FontHeight=12
Blue=127,127,255
BoldBlue=191,191,255
Is there a way to set .minttyrc
programmatically ? Surely there is a way to change the default settings without doing this manually every time.
EDIT.
I have Cygwin configured like this ( a screen shot of the window opened by the DOS batch file).
Here is the code suggested by me_and
C:\cygwin64\home\Greg\Work\CMI>cat ~/.minttyrc
cat: '~/.minttyrc': No such file or directory
I can get .bashrc
to find .CMI_functions
in a sub-directory but I don't know how to get it to find .minttyrc
in the same directory
CONCLUSION.
Best results came from editing the Cygwin batch file to relocate all .executable
bash files, together with .minttyrc
, into C:\cygwin64\home\%USERNAME%
.
cd %USERPROFILE%\Desktop\Archive\UTIL
xcopy . C:\cygwin64\home\%USERNAME%\Work\CMI\UTIL /E /I
copy Misc\* C:\cygwin64\home\%USERNAME%\Work\CMI
copy Bash\.* C:\cygwin64\home\%USERNAME%
copy Scripts\*.sh C:\cygwin64\home\%USERNAME%\Work\CMI
~/.minttyrc
should make the changes persistent, so there's clearly something odd going on for you. How, precisely, are you starting Cygwin? What happens if you runcat ~/.minttyrc
from within a Mintty Cygwin Bash session? – Apprehendcat
command from within a Windows command shell, which can frequently get you very different results to running things from within Cygwin Bash. If you want to use Mintty and Cygwin Bash, you're normally best starting them using the icons that Cygwin's installers will put on your Desktop and/or in your Start Menu. – Apprehend