News for hackers. Stuff that matters.
Re:Hacking the Git Shell Prompt by rgoulter on Sunday February 07, 2021 @11:22AM (#26055989)
The author likes using long branch names, except for that this makes their prompt look ugly.

One workaround they've used is to use a shorter branch name locally which tracks the longer remote branch name.

This blogpost shows details about looking into abbreviating the branch name in the shell code for the git part of the prompt. The author found a way to do it by making use of a particular colorising hook.

There are no comments on this comment yet.