1,安装bash-completion,这个文件其实只是一个shell脚本
2,修改root帐户(或其他有权限执行aptitude/apt-get 命令的用户)的目录下.bashrc中加入一行:
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
2,修改root帐户(或其他有权限执行aptitude/apt-get 命令的用户)的目录下.bashrc中加入一行:
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi