Re: [PATCH 1/6] prompt: don't scream continuation state
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 4, 2013, 05:59 UTC
- Message-ID
- <7v8v2qa02b.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20130604043836.GA3931@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> Even better, we can hit a middle ground by abstracting away some of the > complexity.
The latter half of __git_ps1 is already fairly nice; w/i/s/u/c/p and friends can serve as the basis of such an abstraction, even though r does want to be separated further.
I tried the GIT_PS1_SHOW* variables several times, but every time I did so, I eventually had to give up because I simply couldn't read and/or remember what */+#/$/% line noises meant. If we had a custom "collect these pieces and form the final presentation" mechanism, I could easily replace these with mnemonic letters that can be more easily memorable.