Bugfix: Generate PS1 before appending to history