I have the following prompt set in my bash_profile:
export PS1='\[\e[1;94m\h:\W \u\e[1;93m\$\e[0m \]' # default = '\h:\W \u\$ '
Unfortunately, under certain conditions I encounter problems:
At a blank prompt, I type a character and then press backspace - the prompt is erased entirely and the cursor goes to the left edge of the terminal instead of simply deleting the character
If I use the up and down arrow keys for autocompletion for commands that span multiple lines, only the current line changes but the line above (after the prompt) is left alone
How can I correct my prompt to behave properly in all circumstances as the default one does?