在Cygwin的Mintty终端中动态切换颜色主题
mintty-colors的Python项目详细描述
一种命令行工具,用于在cygwin的mintty终端中动态切换颜色。
安装
你知道的:
pip install mintty-colors
这将安装一个命令行工具-mtc
,让您控制mintty会话的颜色。
用法
列出可用主题
$ mtc list
更改当前主题
$ mtc set <theme>
配置
通过在~/.mintty-colors
处放置文件,可以添加自己的主题或覆盖内置主题。这个文件是一个配置文件,其中每个部分以mintty的~/.minttyrc
文件中使用的格式描述mintty颜色方案。
示例:
[solarized-light] BackgroundColour=253,246,227 ForegroundColour=88,110,117 CursorColour=88,110,117 Black=0,43,54 BoldBlack=101,123,131 Red=220,50,47 BoldRed=220,50,47 Green=133,153,0 BoldGreen=133,153,0 Yellow=181,137,0 BoldYellow=181,137,0 Blue=38,139,210 BoldBlue=38,139,210 Magenta=108,113,196 BoldMagenta=108,113,196 Cyan=42,161,152 BoldCyan=42,161,152 White=147,161,161 BoldWhite=253,246,227