19df0cea18a5

Add the new outgoing and incoming hg-prompt features.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 14 Jul 2009 22:51:12 -0400
parents aa40029d1619
children 423385c9d967
branches/tags (none)
files .bashrc

Changes

--- a/.bashrc	Sat Jul 11 12:01:19 2009 -0400
+++ b/.bashrc	Tue Jul 14 22:51:12 2009 -0400
@@ -35,7 +35,7 @@
 ORANGE=$'\e[33;40m'
 
 hg_ps1() {
-    hg prompt "{${D} on ${PINK}{branch}}{${D} at ${ORANGE}{bookmark}}{${GREEN}{status}}" 2> /dev/null
+    hg prompt "{${D} on ${GREEN}{[+{incoming|count}]-->}${PINK}{branch}}${GREEN}{-->[+{outgoing|count}]}{${D} at ${ORANGE}{bookmark}}{${GREEN}{status}}" 2> /dev/null
 }
 
 export PS1='\n${PINK}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w$(hg_ps1)\