How to disable the weird characters from “bracketed paste mode”
For example, you can highlight text and paste it into the terminal. I then see 00~text01~. You can use this command printf "\e[?2004l" to fix your terminal if this mode got suddenly enabled. echo 'printf "\e[?2004l"' >> ~/.bashrc does the same thing in one line, and you can verify with tail -n1 ~/.bashrc.