I would like to see the git branch shown in the dired mode-line at least for the top directory of git projects.

Anyone done this or know how to?


1 Answer 1


Okay I discovered the git-ps1-mode package which does this, yay!

It is in MELPA so it is easy to install and setup.

At the same time I disabled vc-mode by setting vc-handled-backends to nil, to get more mode-line real-estate.

  • Please accept your own answer to mark this question answered. (Click on the checkmark.)
    – Tobias
    Commented Aug 11, 2023 at 8:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.