Bash completion

Revision as of 11:21, November 1, 2014 by Causes (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

app-shells/bash-completion


Source Repository:Gentoo Portage Tree
Homepage

Summary: Bash tab-completion


News

Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
Mgorny

New OpenGL management in Funtoo

Funtoo is switching to an improved system for managing multiple OpenGL providers (Mesa/Xorg, AMD and NVIDIA). The update may involve blockers and file collisions.
30 March 2015 by Mgorny
Drobbins

Subarch Profiles are coming...

Subarch profiles are on their way! Learn more here.
29 March 2015 by Drobbins
View More News...

Bash completion

Tip

This is a wiki page. To edit it, 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

# emerge -av bash-completion

If you want to enable bash completion for any package that supports it, you can set the global USE flag bash-completion:

/etc/portage/make.conf - Set bash-completion globally
USE="$USE bash-completion"

And then emerge -avN @world to enable bash-completion on packages you formerly built without that support.

However, you probably won't need bash completion on every package you install. So for a lighter system and faster completion, prefer enabling it on a per package basis.

Enable bash completion

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

~/.bashrc - enable bash completion
source /etc/profile.d/bash_completion.sh

Now you can enable completion for various programs with eselect.

$ eselect bashcomp list
$ eselect bashcomp enable gentoo

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

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

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

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