(features.info)Printing a Prompt
Controlling the Prompt
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:
the time, in HH:MM:SS format.
the date, in "Weekday Month Date" format (e.g. "Tue May 26").
the name of the shell, the basename of `$0' (the portion following
the final slash).
the current working directory.
the basename of `$PWD'.
the command number of this command.
the history number of this command.
the character corresponding to the octal number `nnn'.
if the effective uid is 0, `#', otherwise `$'.
begin a sequence of non-printing characters. This could be used to
embed a terminal control sequence into the prompt.
end a sequence of non-printing characters.
Prev: Shell Arithmetic Up: Bash Specific Features
[ Dokumentation lokal installierter Software ]