Ubuntu配置apt-get install自动补全功能

1、执行以下命令

sudo apt-get update
sudo apt-get upgrade

2、默认会安装bash-completion,如果没有安装,请执行以下命令

sudo apt-get install bash-completion

3、配置环境变量

vim ~/.bashrc

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
source ~/.bashrc

你可能感兴趣的:(Ubuntu,vim,linux)