[Intel-gfx] [maintainer-tools PATCH 1/2] dim: Accept .mbox and .patch files as apply-branch optional argument.
Jani Nikula
jani.nikula at intel.com
Thu Aug 17 08:12:54 UTC 2017
On Thu, 17 Aug 2017, Daniel Vetter <daniel at ffwll.ch> wrote:
> One thing we maybe could be doing is a more fancy aliasing feature, along
> the lines of git aliases, where you can do whatever you want. Then you
> could do a dim apply-curl alias which resolves to curl $arg | dim apply.
> Not sure how to implement that though ...
We *already* have a fancy aliasing feature. You can add arbitrary
subcommands of your own, and you can override existing subcommands. Try
this in your ~/.dimrc:
dim_my_fancy_list_aliases()
{
echo "Hello world!"
dim_list_aliases
}
dim_alias_list_aliases=my-fancy-list-aliases
This first part will give you a new "dim my-fancy-list-aliases"
subcommand, and the second part will use it for "dim list-aliases".
Go wild. ;)
BR,
Jani.
--
Jani Nikula, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list