Re: Add colors to the prompt for status indicators

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 16, 2010 at 00:14, Kevin Ballard <kevin@xxxxxx> 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@xxxxxxxxx>
Twitter: @sdouche (agile, lean, python, git, open source)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]