When I use the command line history ( CtrlR , CtrlP )
The command line screws up like this:
The cursor is supposedly located at the end of the line ( just pressed CtrlE )
If I press enter, just source ~/.bash_profile
is executed, the rest is just rubbish on the screen.
Although it works as it should, I'd like the terminal to not be visually broken.
edit:
This is my PS1:
PS1="\033[0;31m[mac] \033[0;37m\w\033[1;36m> \033[1;0m"
source ~/bash_profile
as you described and it worked without issues, but I'm bad at reading those escape sequences manually, so there still could be an issue there that just didn't take effect due to other differences in out setups.