bash-completion

bash-complition amazing package using which you can through TAB to see / select the option that provides the software.

In gentoo, he posed as follows:
emerge-q gentoo-bashcomp

But the script automates the inclusion of the features in all applications that support it:

1
2
3
4
5
6
7
8
#!/usr/bin/python
import os,re
os.system("eselect bashcomp list > /tmp/eselect")
line = open('/tmp/eselect','r').readlines()[-1]
regexp = re.search('[0-9].{2}',line)
for i in xrange(1,int(regexp.group(0))):
    os.system("eselect bashcomp enable --global "+str(i))
print "that's all"

PS: bash-completion is a complement not only for the bash-shell, but also for zsh and other