$ ls automate bin Desktop public_html sauvegarde travail zsh-4.3.6-70.23.i586.rpm $ cd d[TAB] --> $ cd Desktop $ gen[TAB] gencat genhomedircon genhostid genisoimage $ gencat[TAB] $ genhomedircon
If you got root privileges:
$ aptitude install bash-completion
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
set completion-ignore-case on
set show-all-if-ambiguous on
set show-all-if-unmodified on
"\C-i": menu-complete
Otherwise you need to (adjust MPP to your own path):
MPP=/home/toto/bash-completion
[ -n "$BASH_COMPLETION" ] || BASH_COMPLETION=$MPP/etc/bash_completion
[ -n "$BASH_COMPLETION_DIR" ] || BASH_COMPLETION_DIR=$MPP/etc/bash_completion.d
[ -n "$BASH_COMPLETION_COMPAT_DIR" ] || BASH_COMPLETION_COMPAT_DIR=$MPP/etc/bash_completion.d
if [ -f /home/toto/bash-completion/etc/bash_completion ]; then
. /home/toto/bash-completion/etc/bash_completion
fi
set completion-ignore-case on
set show-all-if-ambiguous on
set show-all-if-unmodified on
"\C-i": menu-complete
That's all folks!