Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:Bash completion"

From Funtoo
Jump to navigation Jump to search
Line 6: Line 6:
}}
}}
== Install ==
== Install ==
/etc/portage/make.conf
<console>
<pre>
# nano /etc/portage/make.conf
USE="bash-completion"
USE="bash-completion"
</pre>
</console>
<console>
<console>
# emerge -av bash-completion
# emerge -av bash-completion
Line 16: Line 16:
== Enable bash completion ==
== Enable bash completion ==
You need to add the following to your .bashrc to load bash-completion.
You need to add the following to your .bashrc to load bash-completion.
<pre>
<console>
$ nano ~/.bashrc
source /etc/profile.d/bash-completion.sh
source /etc/profile.d/bash-completion.sh
</pre>
</console>


Now you can enable completion for various programs with eselect.  
Now you can enable completion for various programs with eselect.  

Revision as of 17:09, September 27, 2014

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

root # nano /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.

user $ nano ~/.bashrc
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}