hg-prompt

Joe Gregorio

Hg-prompt, because the only annoyance of Mercurial Queues is accidentally pulling when you have queued patches applied.

# Prompt stuff
D=$'\e[00m'
PINK=$'\e[01;35m'
GREEN=$'\e[01;32m'
ORANGE=$'\e[01;33m'

hg_ps1() {
hg prompt --angle-brackets "<on ${GREEN}<branch>${D}>\
< at ${GREEN}<bookmark>>${D}${PINK}<status>${D}\
< [${ORANGE}<patches|hide_unapplied>${D}]>" 2> /dev/null
}
      
comments powered by Disqus