|  About Me  |  Blogs  |  Photos  |  Publications  |  Resume  | 

Bash Completion in Gentoo

In Gentoo, bash-completion is not enabled by default, so for each package compiled with bash-completion support, we need to manually enable it for completion. Here’re the relevant steps and tools to manage bash-completion.

$ emerge bash-completion eselect

Activate bash-completion in bashrc:

[[ -f /etc/profile.d/bash-completion ]] && source /etc/profile.d/bash-completion

Add to USE flag, so packages can be compiled with bash-completion support if available:

USE="bash-completion"

Use eselect to view and manage packages availabe for bash-completion:

$ eselect bashcomp list

Enable packages for completion globally, e.g.,

$ eselect bashcomp enable --globally eix eselect genlop gentoo subversion

Bash needs to be restarted before the changes will take effect.

Leave a Reply

You must be logged in to post a comment.