Command auto-completion in centos

The automatic prompt function of the command under centos is installed by:

# yum install -y bash-completion
# [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && . /usr/share/bash-completion/bash_completion

 bash-completion reference:  https://github.com/scop/bash-completion

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326579361&siteId=291194637