File: //usr/share/mysqlsh/prompt/prompt_nocolor.json
{
"classes" : {
"schema": {
"text": "[%transport%%xprotocol%%ssltext%/%schema%]"
},
"noschema": {
"text": "[%transport%%xprotocol%%ssltext%]"
},
"nohost": {
},
"production" : {
"text": " PRODUCTION "
}
},
"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%"
},
"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
},
{
"text": "%Mode%",
"tag": "%Mode%",
"separator" : " "
}
]
}