completion: split __git_ps1 into a separate script