# HG changeset patch # User Steve Losh # Date 1263164581 18000 # Node ID a813f49de58452fd9c4bcc37e3832c272c552510 # Parent 82488ceb5054967a48999ea2c807ee2bdccd7d30 hg-prompt: Update documentation. diff -r 82488ceb5054 -r a813f49de584 hg-prompt/documentation/samples/index.html --- a/hg-prompt/documentation/samples/index.html Fri Jan 08 20:12:54 2010 -0500 +++ b/hg-prompt/documentation/samples/index.html Sun Jan 10 18:03:01 2010 -0500 @@ -54,7 +54,8 @@

To get a prompt like this you could add this to your ~/.bashrc file:

export PS1='\u in \w`hg prompt "{on {branch}}{status}{update}" 2>/dev/null` $'
diff -r 82488ceb5054 -r a813f49de584 hg-prompt/index.html
--- a/hg-prompt/index.html	Fri Jan 08 20:12:54 2010 -0500
+++ b/hg-prompt/index.html	Sun Jan 10 18:03:01 2010 -0500
@@ -37,13 +37,15 @@
       
       
   

hg-prompt

-

hg-prompt is a Mercurial extension that adds an 'hg prompt' command to Mercurial for viewing repository information. It's designed to be used in a shell prompt.

+

hg-prompt is a Mercurial extension that adds an 'hg prompt' command to +Mercurial for viewing repository information. It's designed to be used in a +shell prompt.

Installation

Quick Start

Full Documentation

Code

Screenshot

-

My bash prompt while using hg-prompt.

+

My bash prompt while using hg-prompt.

-

Take a look at the Quick Start guide to learn how to put some useful information into your shell prompt.

+

Take a look at the Quick Start guide to learn how to put some useful +information into your shell prompt.

Quick Start

-

This guide will get you up and running so you can put some useful information into your shell prompt.

+

This guide will get you up and running so you can put some useful information +into your shell prompt.

If you haven't already installed it, do that now.

A Simple (But Useful) Prompt

Edit your ~/.bashrc file to include something like this:

@@ -53,7 +54,9 @@ -

source ~/.bashrc after to test it out. Make sure you're in a Mercurial repository or you won't see anything. This little prompt will give you something like this:

+

source ~/.bashrc after to test it out. Make sure you're in a Mercurial +repository or you won't see anything. This little prompt will give you +something like this:

steve at myhost in ~/src/hg-prompt on default at feature-bookmark?
 $
 
@@ -77,7 +80,8 @@

Learn More

-

From here you can take a look at the full documentation to see all the interesting things hg-prompt can do.

+

From here you can take a look at the full documentation to see all the +interesting things hg-prompt can do.