What I want to do, is to change the color, remove whitespace, use square brackets instead of round ones.
Asked
Active
Viewed 147 times
-1
-
1setting `$PS1` should be enough – bob dylan Aug 25 '20 at 08:04
-
Does this answer your question? [Python Beginner - How to customize the output window](https://stackoverflow.com/questions/20579140/python-beginner-how-to-customize-the-output-window) – Vega Jun 14 '21 at 07:01
1 Answers
0
Your question is similar to How to customize virtualenv shell prompt with two added ingredients:
- You want to apply coloring.
- You did not specify your OS/shell; perhaps you are interested in any OS/shell, or at least the two most common, Win10 and bash.
So here you can find complete info.
Bash: https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt.
Win10: https://superuser.com/questions/427820/how-to-change-only-the-prompt-color-of-the-windows-command-line. See also How to echo with different colors in the Windows command line

sancho.s ReinstateMonicaCellio
- 14,708
- 20
- 93
- 185