Go to the previous, next section.
The value of the variable $PROMPT_COMMAND is examined just before
Bash prints each primary prompt. If it is set and non-null, then the
value is executed just as if you had typed it on the command line.
In addition, the following table describes the special characters which
can appear in the PS1 variable:
\t
\d
\n
\s
$0 (the portion
following the final slash).
\w
\W
$PWD.
\u
\h
\#
\!
\nnn
nnn.
\$
#, otherwise $.
\\
\[
\]
Go to the previous, next section.