Package:Bash completion

From Funtoo
Revision as of 16:56, September 27, 2014 by Causes (talk | contribs)
Jump to navigation Jump to search

Bash completion

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Install

/etc/portage/make.conf

USE="bash-completion"
root # emerge -av bash-completion

Enable bash completion

You need to add the following to your .bashrc to load bash-completion.

source /etc/profile.d/bash-completion.sh

Now you can enable completion for various programs with eselect.

user $ eselect bashcomp list
user $ eselect bashcomp enable gentoo

To enable bash completion for all packages, you can use the following.

root # eselect bashcomp enable --global {0..476}

To disable bash completion for all packages, you can use the following.

root # eselect bashcomp disable --global {0..476}