How to enable bash command autocomplete on Alpine Linux

https://w‮ttual.ww‬uri.com
How to enable bash command autocomplete on Alpine Linux

To enable bash command autocomplete on Alpine Linux, you need to install the bash-completion package using the apk command. For example, to install bash-completion, you would run the following command:

apk add bash-completion

Once the bash-completion package is installed, you need to source the bash_completion script in your .bashrc file. This can be done by adding the following line to the .bashrc file:

source /etc/profile.d/bash_completion.sh

After sourcing the bash_completion script, you should be able to use tab completion for commands, arguments, and options in the bash shell. This can save time and make it easier to use the command line by automatically completing commands, arguments, and options as you type.

Created Time:2017-10-16 14:38:45  Author:lautturi