git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 0/3] Colored prompt for ZSH

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
May 17, 2013, 08:55 UTC
Message-ID
<1368780948-28917-1-git-send-email-artagnon@gmail.com>

One minor change, in accordance with Junio's review. In part 1, I use:

local z="${GIT_PS1_STATESEPARATOR-" "}"
Instead of the convoluted:
local z=" "
if [ -n "${GIT_PS1_STATESEPARATOR+set}" ]; then
	z="${GIT_PS1_STATESEPARATOR}"
fi

Everything else is the same. I've rebased it on top of the latest `master`.

Ramkumar Ramachandra (3):
  prompt: introduce GIT_PS1_STATESEPARATOR
  prompt: factor out gitstring coloring logic
  prompt: colorize ZSH prompt
 contrib/completion/git-prompt.sh | 124 +++++++++++++++++++++++++++------------
 1 file changed, 85 insertions(+), 39 deletions(-)
-- 
1.8.1.2.432.g070c57d
Next: Ramkumar Ramachandra
Message 1 of 5 in “Colored prompt for ZSH”
  1. 0/3 Colored prompt for ZSHRamkumar Ramachandra, May 17, 2013
  2. 1/3 prompt: introduce GIT_PS1_STATESEPARATORRamkumar Ramachandra, May 17, 2013
  3. 2/3 prompt: factor out gitstring coloring logicRamkumar Ramachandra, May 17, 2013
  4. Junio C HamanoMay 17, 2013
  5. 3/3 prompt: colorize ZSH promptRamkumar Ramachandra, May 17, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.