bash auto completion

Jonathan Ryshpan jonrysh at pacbell.net
Fri Jul 16 19:21:40 UTC 2010


On Thu, 2010-07-15 at 21:42 -0400, Todd Zullinger wrote:
> Jonathan MERCIER wrote:
> > why default bahrc do not contain all file in /etc/bash_completion.d ?
> > me i add in bashrc:
> > for file in /etc/bash_completion.d/*; do . $file; done
> >
> > instead . /etc/bash_compeltion => because do not works file do not
> > exist!
> 
> This question is probably better suited the the users list¹.
> 
> But, I'm going to guess that you don't have the bash-completion
> package installed.  That is what provides /etc/bash_completion.
> 
> ¹ https://admin.fedoraproject.org/mailman/listinfo/users/

I don't think this is quite true, since it looks like the contents
of /etc/bash_completion.d are installed by various RPMs.  Maybe this is
what's causing confusion.
        $ rpm -qf /etc/bash_completion.d
        yum-3.2.27-4.fc13.noarch
        rpmdevtools-7.8-1.fc13.noarch
        yum-utils-1.1.27-2.fc13.noarch
        PackageKit-0.6.6-1.fc13.x86_64

In more detail:
        $ for i in /etc/bash_completion.d/*; do echo $i; rpm -qf $i;
        done
        /etc/bash_completion.d/acroread.sh
        AdobeReader_enu-9.3.2-1.i486
        /etc/bash_completion.d/dbus-bash-completion.sh
        dbus-glib-devel-0.86-1.fc13.x86_64
        /etc/bash_completion.d/gvfs-bash-completion.sh
        gvfs-1.6.2-1.fc13.x86_64
        /etc/bash_completion.d/pk-completion.bash
        PackageKit-0.6.6-1.fc13.x86_64
        /etc/bash_completion.d/rpmdevtools.bash-completion
        rpmdevtools-7.8-1.fc13.noarch
        /etc/bash_completion.d/yum-utils.bash
        yum-utils-1.1.27-2.fc13.noarch
        /etc/bash_completion.d/yum.bash




More information about the devel mailing list