parse bash $PS1 escape sequences