The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Package:Bash completion"
Line 26: | Line 26: | ||
{{file|name=~/.bashrc|desc=enable bash completion|body= | {{file|name=~/.bashrc|desc=enable bash completion|body= | ||
source /etc/profile.d/ | source /etc/profile.d/bash-completion.sh | ||
}} | }} | ||
Revision as of 15:42, May 29, 2015
Bash completion
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
root # 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 globallyUSE="$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 completionsource /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}