Bash: Autocomplete doesn’t work properly
bash completion extends bash’s 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.
Step 1: Install bash-completion
$ sudo apt-get install bash-completion
And some times it works if we re-installed it by the follwing command:
$ sudo apt-get install --reinstall bash-completion
Step 2: Enable bash-completion in your
gedit ~/.bashrc and if these content doesn’t exist there, add them at the end of it and save it.
# enable bash completion in interactive shells if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi
Important: Logout and log back in and reopen your Terminal. It should be fix now.