support external modification of PS1

Let other things modify PS1 outside of prompt generation.