Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OptionDescription
\cCurrent catalog
\dCurrent database
\:property_name:The value of Flink property_name property
\[ ... \]

Prompts can contain terminal control characters which, for example, change the color, background, or style of the prompt text.

These non-printing control characters must be designated as invisible by surrounding them with \[ and \].

Multiple pairs of these can occur within the prompt.

\DThe full current date (yyyy-MM-dd HH:mm:ss.SSS)
\mMinutes of the current time
\nNew line character\OThe current month in three-letter format (Jan, Feb, …)
\oThe current month in numeric format
\Pam/pm
\RThe current time, in 24-hour military time (0–23)
\rThe current time, standard 12-hour time (1–12)
\sSeconds of the current time\tA tab character
\wThe current day of the week in three-letter format (Mon, Tue, …)
\YThe current year, four digits
\yThe current year, two digits
\\A literal \ backslash character
\x

x, for any x not listed above

...