4

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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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