#pragma section-numbers 2 = Alias Extension = Define convenient command aliases. <> == Status == '''This extension has been moved into core Mercurial as of 1.3.''' ''Original author: Brendan Cully'' == Overview == Define your own shortcuts for Mercurial's command-line user interface. == Configuration == Add the following lines to a hgrc to add a `llog` command: {{{ [alias] # short log llog = log --limit 10 }}} (In 1.2.1 and earlier, you also need to activate the extension from the {{{[extensions]}}} section.) == Ideas for improvements == * 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 }}} ---- CategoryBundledExtension CategoryHistorical