How to add Bash auto completion in CentOS 8 Linux

How to add Bash auto completion in CentOS 8 Linux

To add Bash auto completion in CentOS 8 Linux, you can use the dnf install bash-completion command. This will install the bash-completion package, which provides support for auto completion in Bash.

Once the package is installed, you will need to enable it by adding the following line to your ~/.bashrc file:

source /usr/share/bash-completion/bash_completion
Sour‮‬ce:www.lautturi.com

After adding this line and saving the file, you can start a new Bash session or type source ~/.bashrc to enable auto completion. You can then use the tab key to automatically complete commands, options, and arguments.

Note: The instructions above are specific to CentOS 8. On other Linux distributions, the package name and installation instructions for Bash auto completion may be different.

Created Time:2017-10-18 14:57:43  Author:lautturi