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

Add colors to the prompt for status indicators

From
Sebastien Douche <sdouche@gmail.com>
Date
Oct 31, 2010, 04:14 UTC
Message-ID
<AANLkTi=ZdR4_reQgxL+xRaFE=SaqBYAWTrEuGEbLGynt@mail.gmail.com>

Hi, the prompt (git-completion.bash) bundled with git is the most "advanced" I found on the web. But I would add colors for "status". Example show: * (unstaged) in blue, + (staged in red), $ (stashed) in green, % (untracked) in bold blue and < > <> (upstream indicator) in red.

How make this?
Cheers
-- 
Sebastien Douche <sdouche@gmail.com>
Twitter: http://bit.ly/afkrK (agile, lean, python, git, open source)
Next: Kevin Ballard
Message 1 of 9 in “Add colors to the prompt for status indicators”
  1. Sebastien DoucheOct 31, 2010
  2. Kevin BallardOct 31, 2010
  3. Andrew SayersNov 14, 2010
  4. Kevin BallardNov 15, 2010
  5. Kevin BallardNov 15, 2010
  6. Sebastien DoucheNov 16, 2010
  7. Kevin BallardNov 16, 2010
  8. Michael J GruberNov 16, 2010
  9. Kevin BallardNov 16, 2010

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.