File: //usr/share/mysqlsh/prompt/prompt_256.json
{
"desc": "256/24bit color terminal theme with MySQL prefix, default schema, host:port, ssl, + indicator for X protocol, active mode.",
"classes": {
"SQL": {
"fg": "15",
"bg": "166"
},
"JS": {
"fg": "0",
"bg": "221"
},
"Py": {
"fg": "15",
"bg": "25"
},
"schema": {
"text": "%schema%"
},
"noschema": {
"text": ""
},
"disconnected": {},
"hostx": {
"text": "%transport%+"
},
"hostc": {
"text": "%transport%"
},
"SSLhostx": {
"text": "%transport%+ ssl"
},
"SSLhostc": {
"text": "%transport% ssl"
},
"ctrx": {
"text": "",
"bg": 38,
"fg": 15
},
"ctrx.": {
"text": " - ",
"bg": 242,
"fg": 15
},
"ctrx*": {
"text": " \u2605 ",
"bg": 38,
"fg": 15
},
"ctrx^": {
"text": " \u2606 ",
"bg": 38,
"fg": 15
},
"ctrx*.": {
"text": " \u2605 ",
"bg": 38,
"fg": 15
},
"ctrx^.": {
"text": " \u2606 ",
"bg": 38,
"fg": 15
},
"production": {
"text": " PRODUCTION ",
"bg": "red",
"fg": "white"
}
},
"variables": {
"is_production": {
"match": {
"pattern": "*;%host%;*",
"value": ";%env:PRODUCTION_SERVERS%;"
},
"if_true": "production",
"if_false": ""
},
"target": {
"match": {
"pattern": "%socket%",
"value": ""
},
"if_true": "%host%:%port%",
"if_false": "localhost"
},
"transport": {
"match": {
"pattern": "%ssh_host%",
"value": ""
},
"if_true": "%target%",
"if_false": "%ssh_host% > %target%"
}
},
"symbols": {
"separator": "",
"separator2": "",
"ellipsis": "..."
},
"prompt": {
"text": "> ",
"cont_text": "%linectx%> ",
"bg": "0"
},
"segments": [
{
"classes": [
"disconnected%host%",
"%is_production%"
]
},
{
"text": " My",
"bg": 254,
"fg": 23
},
{
"separator": "",
"text": "SQL ",
"bg": 254,
"fg": 166
},
{
"classes": [
"disconnected%host%",
"%ssl%host%session%"
],
"shrink": "truncate_on_dot",
"bg": 237,
"fg": 15,
"weight": 10,
"padding": 1
},
{
"classes": [
"noschema%schema%",
"schema"
],
"bg": 242,
"fg": 15,
"shrink": "ellipsize",
"weight": -1,
"padding": 1
},
{
"classes": [
"%session%trx%trx%%autocommit%"
],
"weight": -1
},
{
"classes": [
"%Mode%"
],
"text": "%Mode%",
"padding": 1
}
]
}