I customized my bash prompt, PS1 value.~/.bashrc:Color_Off='\e[0m'       # Text ResetBGreen='\e[1;32m'       # GreenBPurple='\e[1;35m'      # PurpleBWhite='\e[1;37m'       # WhiteBIBlue='\e[1;94m'       # BluePS1=[\[$BGreen\w\]\[$Color_Off\]]\n[\[$BPurple\u\]\[$BWhite\]@\[$BIBlue\h\]\[$Color_Off\]]\$ When I scroll up in the history with up arrow from the keyboard, after a lot of command I can see these:[/etc][bicocca@bicoccag]$ vi[/etc][bicocca@bicoccag]$ vim[/etc][bicoclearThe command overlaps the prompt. How I can resolve the issue? I tried to search in Google but I did not found anything.I am using RHEL6.4.
why bash history overlap the prompt when scroll up in the history?
bash;rhel;command history;bashrc