1.# aptitude install bash-completion -y
2.# gedit ~/.bashrc
加入以下语句:
if[ -f /etc/bash_completion];then
./etc/bash_completion
fi
安装Bash Completion并配置.bashrc文件
本文介绍如何使用aptitude安装bash-completion,并将其添加到.bashrc文件中,实现bash命令自动补全功能。
1.# aptitude install bash-completion -y
2.# gedit ~/.bashrc
加入以下语句:
if[ -f /etc/bash_completion];then
./etc/bash_completion
fi

被折叠的 条评论
为什么被折叠?