From: Sebastien Douche <sdouche@gmail.com>
To: Kevin Ballard <kevin@sb.org>
Cc: Andrew Sayers <andrew-git@pileofstuff.org>,
git list <git@vger.kernel.org>
Subject: Re: Add colors to the prompt for status indicators
Date: Tue, 16 Nov 2010 09:11:14 +0100 [thread overview]
Message-ID: <AANLkTimpyug867ccsKA+fLjzDJ8NukQXcPnVJw3Uk4LD@mail.gmail.com> (raw)
In-Reply-To: <F7A9874A-738C-4BEA-8EDF-0ED1FA7D6ACF@sb.org>
On Tue, Nov 16, 2010 at 00:14, Kevin Ballard <kevin@sb.org> wrote:
> I take it back. We can use PROMPT_COMMAND for this, to set up variables
> containing what you want.
>
> Something like the following should work:
Hi Kevin,
good job! I looked the git prompt and I'm a bit disappointed with the
combination, ps1 can show many items:
#
%
+
*
$
REBASE-i|
REBASE-m|
MERGING|
BISECTING|
< > <> (or u+count u-count u+countu-count)
Each item is "optional", so you can have REBASE-i| with * and +, or
only *. It seems to complicated to wrap all items (I think of the
verbose mode for upstream branches). Maybe coding a lua (or Python)
prompt with a config file.
--
Sebastien Douche <sdouche@gmail.com>
Twitter: @sdouche (agile, lean, python, git, open source)
next prev parent reply other threads:[~2010-11-16 8:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 4:14 Add colors to the prompt for status indicators Sebastien Douche
2010-10-31 6:26 ` Kevin Ballard
2010-11-14 20:50 ` Andrew Sayers
2010-11-15 22:52 ` Kevin Ballard
2010-11-15 23:14 ` Kevin Ballard
2010-11-16 8:11 ` Sebastien Douche [this message]
2010-11-16 9:07 ` Kevin Ballard
2010-11-16 10:43 ` Michael J Gruber
2010-11-16 10:49 ` Kevin Ballard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimpyug867ccsKA+fLjzDJ8NukQXcPnVJw3Uk4LD@mail.gmail.com \
--to=sdouche@gmail.com \
--cc=andrew-git@pileofstuff.org \
--cc=git@vger.kernel.org \
--cc=kevin@sb.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).