$ 0 0 A less noisy version for git status would do the trick git status -bsuno It prints out ## branch-name