__PS1__
- :
val =__PS1__()¶ - :
old_val =__PS1__(new_val)¶ - :
old_val =__PS1__(new_val, "local")¶ Query or set the primary prompt string.
The string may contain escape sequences such as
\\#(the command number) which are expanded when the prompt is displayed. With the argument"local"the change lasts only until the calling function returns.