Differences between revisions 11 and 12
Revision 11 as of 2009-05-19 06:48:12
Size: 815
Editor: BrendanCully
Comment: alias TODO
Revision 12 as of 2009-05-19 19:31:04
Size: 815
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Alias Extension

This extension is currently being distributed along with Mercurial.

Author: Brendan Cully

1. Overview

Just enable the extension, then define your own command aliases in your hgrc. For example, the configuration below gives you a new llog command.

2. Configuration

Configure your .hgrc to enable the extension by adding following lines:

[extensions]
alias =

[alias]
# short log
llog = log --limit 10

3. Future Work

  • Support for global options like --config in extension definitions
  • Shell aliases
  • Argument substitution
    mq = hg -R $(hg root)/.hg/patches $*
  • Pipes
    hgrep = hg manifest | grep $*
  • Recursive alias definitions:
    foo = bar
    bar = log


CategoryExtension

AliasExtension (last edited 2013-08-08 00:05:19 by rcl)