ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.54k stars 626 forks source link

git plugin, show branch but not the status #493

Open nagylzs opened 8 months ago

nagylzs commented 8 months ago

I really like that the git plugin adds the name of the current branch to the end of the prompt. But for large repos, indicating the status with its color make it very slow. I have a repo where it takes several seconds to display the prompt, just because it takes so long to query the status. I would like to have a git plugin setting where one can turn off the status based coloring, but keep the branch name in the prompt. Is this possible?

Even better, there could be a setting that measures the time that is needed to get the status of a repo, and if it takes too long (say, more than 0.5 sec) then it would switch into a mode (for a limited amount time, let's say for 15 minutes) that does not set the color based on the status for that particular repo.