Add patches to the prompt.
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 24 Nov 2009 20:09:07 -0500 |
parents |
9e86f39ef363
|
children |
7a9c73d7ba0f
|
branches/tags |
(none) |
files |
.hgrc bash/prompt |
Changes
--- a/.hgrc Sun Nov 08 11:19:21 2009 -0500
+++ b/.hgrc Tue Nov 24 20:09:07 2009 -0500
@@ -19,7 +19,7 @@
paste = ~/src/hg-paste/paste.py
prompt = ~/src/hg-prompt/prompt.py
histedit = ~/lib/hg/histedit
-hg-git = ~/lib/hg/hg-git-abderrahim
+hg-git = ~/lib/hg/hg-git
collapse = ~/lib/hg/hgcollapse/hgext/collapse.py
diffstat = ~/lib/hg/hgdiffstat/hgext/diffstat.py
compass = ~/lib/hg/hg-compass/compass.py
@@ -93,7 +93,7 @@
gl+ = gl -l100000000
-, = glog -l15 --template '\033[33;40m{rev} \033[37;40m{desc|firstline|fill68} \033[1;30;40m({date|age} ago by {author|person})\033[0;37;40m \033[33;40m{tags}\033[37;40m \033[35;40m{branches}\033[37;40m\n\n'
+, = glog -l15 --template '\033[33;40m{rev} \033[37;40m{desc|firstline|fill68} \033[1;30;40m({date|age} by {author|person})\033[0;37;40m \033[33;40m{tags}\033[37;40m \033[35;40m{branches}\033[37;40m\n\n'
,+ = , -l100000000
--- a/bash/prompt Sun Nov 08 11:19:21 2009 -0500
+++ b/bash/prompt Tue Nov 24 20:09:07 2009 -0500
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-D=$'\[\e[37;40m\]'
+D=$'\[\e[0m\]'
+GREY=$'\[\e[30;1;40m\]'
PINK=$'\[\e[35;40m\]'
GREEN=$'\[\e[32;40m\]'
ORANGE=$'\[\e[33;40m\]'
@@ -9,7 +10,9 @@
hg prompt "\
{${D} on ${PINK}{branch}}\
{${D} at ${ORANGE}{tags|${D}, ${ORANGE}}}\
-{${GREEN}{status|modified|unknown}}{${GREEN}{update}}" 2> /dev/null
+{${GREEN}{status|modified|unknown}}{${GREEN}{update}}\
+{${D}\npatches: {patches|pre_applied(${ORANGE})|post_applied(${D})|pre_unapplied(${GREY})|post_unapplied(${D})}}\
+" 2> /dev/null
}
tasks_ps1() {