PS1 line-wrapping with colours problem August 22, 2023 by Tarik Got it, needed to escape the colours properly. Fix: PS1='\u:\W$(__git_ps1 "\[\e[32m\][%s]\[\e[0m\]")$ '