Refactor my PS1 setting code for VCSes