HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Program Files/MySQL/MySQL Shell 8.0/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" : " "
    }
  ]
}