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