In Bash when I type at the beginning of a long line the characters are masked with an invisible mark and sometimes adding weird long lines as you can see in the picture below.
This is my PS1
export, I don't know if it's the cause. Does anyone know what part of .bashrc
might be causing this?
Im using Terminator, it also happens in the default Ubuntu terminal.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
cust1=$(echo -e "\033[0;97m\]\u\033[1;97m\]->\033[0m")
export PS1="\n[\[\033[0;94m\]\]\w\[\033[0m\[\033[38;5;15m\]]\[\033[0;93m\$(parse_git_branch)\[\e[00m\]\n${cust1}\[\033[0m\] "
If you can see the GIF below, does anyone have any idea what causes this?