From 7231d8d1e7a67e95c0bd5b570837c7853e5708bc Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Sat, 14 Feb 2026 16:44:01 -0500 Subject: [PATCH] add new socket connection prompt format strings and make some incidental tweaks. --- content/pages/prompt.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/content/pages/prompt.md b/content/pages/prompt.md index 1145967..43bc3a8 100644 --- a/content/pages/prompt.md +++ b/content/pages/prompt.md @@ -10,15 +10,19 @@ you can interactively change the prompt by using the The prompt is generated using the following format sequences: - * `\D` - the full current date, _e.g._ `Sat Feb 14 15:55:48 2026` - * `\R` - the current hour in 24-hour time (0–23) - * `\r` - the current hour in 12-hour time (1–12) + * `\D` - full current date, _e.g._ `Sat Feb 14 15:55:48 2026` + * `\R` - current hour in 24-hour time (0–23) + * `\r` - current hour in 12-hour time (0–12) * `\m` - minutes of the current time * `\s` - seconds of the current time * `\P` - AM/PM * `\d` - selected database/schema * `\h` - hostname of the server - * `\p` - the connection port + * `\p` - connection port + * `\j` - connection socket basename + * `\J` - full connection socket path + * `\k` - connection socket basename OR the port + * `\K` - full connection socket path OR the port * `\t` - database vendor (Percona, MySQL, MariaDB, TiDB) * `\u` - username * `\A` - DSN alias if any