How to install and enable Bash auto completion in Fedora Linux

h‮ptt‬s://www.lautturi.com
How to install and enable Bash auto completion in Fedora Linux

To install and enable Bash auto completion in Fedora Linux, follow these steps:

  1. Install the bash-completion package using the package manager:
sudo dnf install bash-completion
  1. Once the installation is complete, you can enable Bash auto completion by adding the following line to the ~/.bashrc file:
source /usr/share/bash-completion/bash_completion

This will enable Bash auto completion for all users on the system.

  1. If you want to enable Bash auto completion for a specific user, you can add the above line to the user's ~/.bashrc file instead.

  2. To apply the changes and enable Bash auto completion, you will need to log out and log back in, or you can source the ~/.bashrc file using the following command:

source ~/.bashrc

Bash auto completion should now be enabled and you should be able to use it when typing commands in the terminal.

Created Time:2017-10-28 21:39:04  Author:lautturi