linux系统命令补全
下载地址: http://bash-completion.alioth.debian.org/files/bash-completion-2.0.tar.bz2
官方网站: http://bash-completion.alioth.debian.org/
./configure
make
make check # optional, requires dejagnu and tcllib
make install # as root
还需要把【 bash_completion.sh 】或者【 bash_completion 】脚本 加入到启动项中
两个方法安装
第一种: $ cp bash_completion.sh /etc/profile.d/ #所有系统用户可以使用到自动补全的脚本
第二种: $ cp ~/.bashrc ~/.bashrc.old ; cat bash_completion >>~/.bashrc
reboot 打开新的命令行终端,ls --【tab】【tab】检查是否安装成功
配置epel源
yum -y install bash-completion
reboot