[augeas-devel] Re: [PATCH] Add bash_completion script for augtool
David Lutterkort
dlutter at redhat.com
Sat Jul 26 16:52:42 UTC 2008
On Sat, 2008-07-26 at 12:32 +0200, Raphaël Pinson wrote:
> This doesn't seem right to me .. why do you look into the
> filesystem for
> possible completions ? Shouldn't you complete on the output of
> 'augtool
> ls $cur' ?
>
> That's what I would do indeed, if augtool was reactive enough. Since
> augtool takes at least 3 secondes on each request (it's not even an
> issue with my machine, since I develop on a dual-core amd64 with 4GB
> RAM server), I thought I would just use the filesystem to complete
> instead of augtool itself.
It's not a big issue on my laptop - could it have something to do with
bbhosts.aug ? I wonder if the same trick used for dput.aug would speed
things up with bbhosts, too. If it doesn't, I might have to look more
closely into where the slowdown is.
As it is, the completions you get are not very useful - for example,
typing 'augtool get /files/<TAB>' offers 1700 completions, even though
there's only one possible in my tree (/files/etc)
David
More information about the augeas-devel
mailing list