File: //usr/share/mysqlsh/prompt/prompt_16.json
{
"classes" : {
"schema": {
"text": "[%host%%xprotocol%%ssltext%/%schema%]"
},
"noschema": {
"text": "[%host%%xprotocol%%ssltext%]"
},
"nohost": {
},
"production" : {
"text": " PRODUCTION ",
"bold": true
}
},
"variables" : {
"is_production": {
"match" : {
"pattern": "*;%host%;*",
"value": ";%env:PRODUCTION_SERVERS%;"
},
"if_true" : "production",
"if_false" : ""
},
"xprotocol": {
"match": {
"pattern": "%session%",
"value": "x"
},
"if_true": "+",
"if_false": ""
},
"ssltext": {
"match": {
"pattern": "%ssl%",
"value": "SSL"
},
"if_true": " ssl",
"if_false": ""
}
},
"prompt": {
"text": "> ",
"cont_text": "%linectx%> "
},
"segments": [
{
"classes": ["nohost%host%", "%is_production%"]
},
{
"separator": "",
"text": "MySQL"
},
{
"classes": ["nohost%host%", "noschema%schema%", "schema"],
"shrink": "truncate_on_dot",
"weight": 10,
"bold": true
},
{
"text": "%Mode%",
"tag": "%Mode%",
"separator" : " "
}
]
}