hg-prompt/installation/index.html @ 9419dfa1bff9
hg-prompt: Update site.
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Sun, 19 Jul 2020 11:35:39 -0400 |
| parents | abcf6f68470c |
| children | (none) |
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Installation / hg-prompt</title> <link rel="stylesheet" href="../_dmedia/tango.css"/> <link rel="stylesheet/less" type="text/css" href="../_dmedia/style.less"/> <script src="../_dmedia/less.js" type="text/javascript"> </script> </head> <body class="content"> <div class="wrap"> <header><h1><a href="..">hg-prompt</a></h1></header> <div class="markdown"> <h1 id="installation"><a href="">Installation</a></h1><p>Installing <code>hg-prompt</code> requires <a href="http://python.org/">Python</a> 2.5+ and (obviously) Mercurial.</p> <p>First, clone the repository:</p> <div class="codehilite"><pre><span/>$ hg clone http://bitbucket.org/sjl/hg-prompt/ </pre></div> <p>Edit the <code>[extensions]</code> section in your <code>~/.hgrc</code> file:</p> <div class="codehilite"><pre><span/><span class="k">[extensions]</span> <span class="na">prompt</span> <span class="o">=</span> <span class="s">(path to)/prompt.py</span> </pre></div> <p>Make sure everything is working:</p> <div class="codehilite"><pre><span/>$ hg prompt <span class="s1">'test'</span> <span class="nb">test</span> </pre></div> <p>Take a look at the <a href="../quickstart/">Quick Start</a> guide to learn how to put some useful information into your shell prompt.</p> </div> <footer><p><i>Made by <a href="https://stevelosh.com/">Steve Losh</a>.</i></p> <p><a href="http://rochestermade.com" title="Rochester Made"><img src="https://rochestermade.com/media/images/rochester-made-dark-on-light.png" alt="Rochester Made" title="Rochester Made"/></a></p></footer> </div> </body> </html>