bash prompts
- PS1 → primary prompt string:
$
- PS2 → secondary prompt for multi-line input:
>
- PS3 → prompt string in select loops:
#?
- PS4 → prompt string for execution trace:
+
Escape Sequences

- By default this
\u@\h:\w\$ is the prompt string.
- Username @ Machine name : Current Directory Prompt Symbol
Python command line
ps1 and ps2 are defined in the module sys
- Change
sys.ps1 and sys.ps2 if needed
- Override
__str__ method to have dynamic prompt
>>> is the default for python
