[ubuntu-uk] Bash smart completion (was: External drive is stuck at read-only.)

Neil Greenwood neil.greenwood.lug at gmail.com
Fri Feb 1 08:14:48 GMT 2008


On 30/01/2008, Tony Arnold <tony.arnold at manchester.ac.uk> wrote:
> Neil,
> Neil Greenwood wrote:
> >> There is no need to quote the colon. "chown tony: <files>" works just fine!
> >>
> >
> > Thanks for that Tony. The only reason I wrote it like that is that
> > that's how the tab completion finishes it off.
> Interesting! I just turned on bash smart completion and got the \:. I
> guess it's just being ultra safe! Think I'll leave this smart completion
> turned on from now on. It looks really useful.

It's really useful, especially when you use it for command-line
options (e.g. is the 'diff' parameter '--ignore-all-space' or
'--ignore-all-spaces'; '--ignore-a<TAB>'; got it!).

There are built-in completion files for svn, cvs and a whole load of
others, plus you can write your own - I haven't done this yet, but
while the completion files are a little bit complicated, the process
is understandable.


More information about the ubuntu-uk mailing list