Entry 2929

hg_ps1

   

Submitted by anonymous on Jan. 5, 2010 at 5:48 p.m.
Language: Bash. Code size: 190 bytes.

hg_ps1() {
    hg prompt "{[+{incoming|count}]-->}{root|basename}{/{branch}}{-->[+{outgoing|count}]}{ at {bookmark}}{status}" 2> /dev/null
}

export PS1='$(hg_ps1)\n\u at \h in \w\n$ '

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).