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