Hellow fellow fishers,

My question is short: what is the best way to implement support for command
completions when using git aliases?

For example, I've a (git-defined) alias for checkout, via

    git config --global alias.co checkout

When typing "git co <TAB>", I want to have that expand to every available
branch/tag, as if I typed "git checkout <TAB>".

Currently, I'm copying all the git completions over to a local version for
the aliases, but that approach is pretty lame.

Is it possible to do alias detection/completion automatically in a
non-hacky way?

Cheers,
Vincent
------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to