I delete it. It duplicates itself......but why?

Hello All, When I delete a line or certain line from bash script file, some other line of code duplicates itself. That’s quite annoying. Would you please tell me how would I solve that issue?
In the following code, I deleted the a line of code. After I deleted the code, you see the comment line # If this is an xterm set the title to user@host:dir duplicated itself. It happens with code lines too.
I tried 4 to 5 times. Every single time something happened. Can you please help me out?


And yeah, the code is not changing the color of the shell prompt.
In which space do I need to enter the following line of code?
export PS1="\${debian_chroot:+(\$debian_chroot)}vi\\[\\033[01;36m\\]\\u\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\\$ "

Hi @abdulbasitisdost,

If you want to change the colors in the shell, when opening the recommended file, you have to go to the end of the file by pressing ESC and typing :$, then pressing ENTER.

Then you will be at the end of the line.

You then press ESC, then press “i” to INSERT.

Please let us know if you have any further questions.

Ok. Thank you Sir. And why does it duplicate few lines of code when I’m trying to remove some other lines in bash script?