[Bash-completion-devel] speed up bash completion init by > 30%...

Ville Skyttä ville.skytta at iki.fi
Tue Oct 14 06:37:26 UTC 2014


On Thu, Oct 9, 2014 at 6:09 AM, Linda A. Walsh <bash at tlinx.org> wrote:
> Currently this function is used all over the place:
>
> #have() { unset -v have
> #    # Completions for system administrator commands are installed as well
> in
> #    # case completion is attempted via `sudo command ...'.
> #    PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
> #    have="yes"
> ----

BTW that's not what the have() function looks like in recent
bash-completion. I suppose you're using an old version.

http://anonscm.debian.org/cgit/bash-completion/bash-completion.git/tree/bash_completion#n125



More information about the Bash-completion-devel mailing list