Re: [mr] bash-completion rules

2011-12-26 Thread Joey Hess
Adam Spiers wrote: > there is a bigger cost - the risk of having a version of the completion > rules which does not match the version of mr installed. This is, in practice, not a large problem, and can be dealt with by distribution integrators. > There's also a converse argument. Completion func

Re: [mr] bash-completion rules

2011-12-17 Thread Adam Spiers
es and mr's codebase encourages maintenance by both shell developers and mr developers. If mr learns a new option (e.g. the recent `--force') then the completion functions in the mr repository will too. If bash's completion API changes, the bash developers will update the mr compl

Re: [mr] bash-completion rules

2011-12-17 Thread Antonio Ospite
is right, but their job is made a lot easier if the upstream tarball > contains the completion functions, and all they have to do is ensure > that the rpm/deb/whatever places that file in the correct location, > which ideally would override the completion function shipped with the > s

Re: [mr] bash-completion rules

2011-12-17 Thread Adam Spiers
On Sat, Dec 17, 2011 at 11:20 AM, Antonio Ospite wrote: > On Wed, 7 Dec 2011 17:11:52 +0100 > Richard Hartmann wrote: > >> On Wed, Dec 7, 2011 at 16:21, Adam Spiers wrote: >> >> > On Wed, Dec 7, 2011 at 2:34 PM, Antonio Ospite >> > wrote: >> >> >> or where else? >> > >> > Good question - I wil

Re: [mr] bash-completion rules

2011-12-17 Thread Antonio Ospite
On Wed, 7 Dec 2011 17:11:52 +0100 Richard Hartmann wrote: > On Wed, Dec 7, 2011 at 16:21, Adam Spiers wrote: > > > On Wed, Dec 7, 2011 at 2:34 PM, Antonio Ospite > > wrote: > > >> or where else? > > > > Good question - I will probably write zsh completion rules for mr > > at some point too.

Re: [mr] bash-completion rules

2011-12-07 Thread Richard Hartmann
On Wed, Dec 7, 2011 at 16:21, Adam Spiers wrote: > On Wed, Dec 7, 2011 at 2:34 PM, Antonio Ospite > wrote: >> or where else? > > Good question - I will probably write zsh completion rules for mr > at some point too. For zsh, it's /usr/share/zsh/functions/Completion/Unix/_mr but just send

Re: [mr] bash-completion rules

2011-12-07 Thread Adam Spiers
On Wed, Dec 7, 2011 at 2:34 PM, Antonio Ospite wrote: > Hi, > > I wrote bash-completion rules for mr, I will send a patch if you are > interested but before that I wanted to ask where you like the file to > be placed: > > ./mr-completion.bash > ./contrib/mr-completion.bash > ./completion/mr-comple

[mr] bash-completion rules

2011-12-07 Thread Antonio Ospite
Hi, I wrote bash-completion rules for mr, I will send a patch if you are interested but before that I wanted to ask where you like the file to be placed: ./mr-completion.bash ./contrib/mr-completion.bash ./completion/mr-completion.bash or where else? Just out of curiosity: is it intentional tha