IMPORTANT: Per accedir als fitxer de subversion: http://acacha.org/svn (sense password). Poc a poc s'aniran migrant els enllaços. Encara però funciona el subversion de la farga però no se sap fins quan... (usuari: prova i la paraula de pas 123456)

Instal·lació

$ sudo apt-get install bash-completion

Segons:

$ apt-cache show bash-completion
...
Description: programmable completion for the bash shell
 bash completion extends bashs standard completion behavior to achieve
 complex command lines with just a few keystrokes.  This project was
 conceived to produce programmable completion routines for the most
 common Linux/UNIX commands, reducing the amount of typing sysadmins
 and programmers need to do on a daily basis.
...

És una extensió de les capacitat per autocompletar de bash.

Els fitxers instal·lats són:

$ dpkg -L bash-completion 
/.
/etc
/etc/bash_completion.d
/etc/bash_completion
/usr
/usr/bin
/usr/bin/dh_bash-completion
/usr/share
/usr/share/doc
/usr/share/doc/bash
/usr/share/doc/bash-completion
/usr/share/doc/bash-completion/contrib
/usr/share/doc/bash-completion/contrib/modules
/usr/share/doc/bash-completion/contrib/sitecopy
/usr/share/doc/bash-completion/contrib/povray
/usr/share/doc/bash-completion/contrib/bittorrent
/usr/share/doc/bash-completion/contrib/dsniff
/usr/share/doc/bash-completion/contrib/sbcl
/usr/share/doc/bash-completion/contrib/gnatmake
/usr/share/doc/bash-completion/contrib/cksfv
/usr/share/doc/bash-completion/contrib/mcrypt
/usr/share/doc/bash-completion/contrib/bitkeeper
/usr/share/doc/bash-completion/contrib/svk
/usr/share/doc/bash-completion/contrib/gkrellm
/usr/share/doc/bash-completion/contrib/clisp
/usr/share/doc/bash-completion/contrib/hg
/usr/share/doc/bash-completion/contrib/p4
/usr/share/doc/bash-completion/contrib/isql
/usr/share/doc/bash-completion/contrib/mtx
/usr/share/doc/bash-completion/contrib/ri
/usr/share/doc/bash-completion/contrib/lisp
/usr/share/doc/bash-completion/contrib/snownews
/usr/share/doc/bash-completion/contrib/gcl
/usr/share/doc/bash-completion/contrib/unrar
/usr/share/doc/bash-completion/contrib/lilypond
/usr/share/doc/bash-completion/contrib/unace
/usr/share/doc/bash-completion/contrib/mailman
/usr/share/doc/bash-completion/contrib/harbour
/usr/share/doc/bash-completion/contrib/larch
/usr/share/doc/bash-completion/contrib/freeciv
/usr/share/doc/bash-completion/README.gz
/usr/share/doc/bash-completion/TODO
/usr/share/doc/bash-completion/copyright
/usr/share/doc/bash-completion/changelog.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/dh_bash-completion.1.gz
/usr/share/doc/bash/README.bash_completion.gz
/usr/share/doc/bash/completion-contrib

Configuració

Per que funciona bash_completion els usuaris han de tenir les següents línies:

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

Al fitxer .bashrc de la seva HOME.

Cal recordar que la home base de tots els usuaris està a la carpeta /etc/skel.

Activar en una línia de comandes on no està activat

Escriviu:

 . /etc/bash_completion 

Enllaços externs