I have a kind of complicated PS1 pattern:
export PS1="\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
Which is based off of the git-aware-prompt utility and docs.
Everything used to work pretty well, but for a while now, whenever I start a new terminal session my terminal seems to output some of the PS1:
\]\u@\h\[\]:\[\]\w\[\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "pat@computer:~ $
And I can't figure out why. Hitting enter the next ps1 output is normal:
\]\u@\h\[\]:\[\]\w\[\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "pat@computer:~ $
pat@computer:~ $
pat@computer:~ $
Executing individual lines of my .bashrc related to PS1 configuration doesn't appear to cause shell output.