I customized my bash PS1 prompt with this ~/.bashrc file.
I can't seem to figure out why my output colors change after the first 2 lines of output.

Any ideas what could be causing the issue?
|
I customized my bash
Any ideas what could be causing the issue? |
||||
|
|
|
The problem seems to be that there is no escape sequence to reset the colors at the end of the prompt, so the command text is also colored because the interpreter don't know where to stop coloring. You need to append this escape sequence at the end of your prompt
You can associate this sequence with a variable, add it to the prompt function definition and use it as with the other color definitions:
Thus, the prompt would be:
For further reading you should check out the Color Bash Prompt Arch Wiki article. |
||||
|
|
|
Because try it: |
||||
|
|