Prompt shows wrong branch
samtstern opened this issue · 4 comments
samtstern commented
Here's my configuration:
export PS1="\u@\h \W \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\n\$ "
Right now in my terminal I see the following prompt:
samstern@samstern-macbookpro firebase-tools (master)
$
But when I run git branch
you can see I am not on master
:
samstern@samstern-macbookpro firebase-tools (master)
$ git branch
fix-firestore-delete-escaping
master
* ss-firestore-delete-bugfix
Any idea what's going on here?
lethosor commented
Have you also set PROMPT_COMMAND?
samtstern commented
No I don't have that set anywhere.