CentOS6.5安装Tab增强版:bash-completion,可补全命令参数;
- 因为CentOS官方源并不带有bash-completion的包,所以,为了可用yum安装,增加epel的源,
首先,使用wget下载epel的rpm包,使用rpm指令安装,之后运行yum安装,代码如下:
[[email protected] ~]$ wget http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm [[email protected] ~]$ sudo rpm -ivh epel-release-6-8.noarch.rpm [[email protected] ~]$ sudo yum clean all [[email protected] ~]$ sudo yum makecache [[email protected] ~]$ sudo yum install -y bash-completion
安装完成之后,注销终端,重新登录即可。
时间: 2024-11-03 03:40:31