On Fri, Oct 7, 2016 at 10:55 PM, Jakub Narębski <jnareb@xxxxxxxxx> wrote: > W dniu 07.10.2016 o 16:19, Johannes Schindelin pisze: >> On Fri, 7 Oct 2016, Jakub Narębski wrote: > >>> Note that we would have to teach git completion about new syntax; >>> or new configuration variable if we go that route. >> >> Why would we? Git's completion does not expand aliases, it only completes >> the aliases' names, not their values. > > Because Git completion finds out which _options_ and _arguments_ > to complete for an alias based on its expansion. > > Yes, this is nice bit of trickery... It's c63437c (bash: improve aliased command recognition - 2010-02-23) isn't it? This may favor j6t's approach [1] because retrieving alias attributes is much easier. [1] https://public-inbox.org/git/20161006190720.4ecf3ptl6msztoya@xxxxxxxxxxxxxxxxxxxxx/T/#mb1d7b8f31d595b05105b8ea2137756761e13dbf4 -- Duy