PS1 problem, cmd is looping
Non-printing characters in the prompt need to be surrounded by \[
and \]
so that bash can properly track the length of the prompt and accommodate lines that go beyond the edge of the terminal.
Non-printing characters in the prompt need to be surrounded by \[
and \]
so that bash can properly track the length of the prompt and accommodate lines that go beyond the edge of the terminal.