先安装软件
apt install bash-completion -y
vim .bashrc
取消注释这几句话
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
然后
source .bashrc
先安装软件
apt install bash-completion -y
vim .bashrc
取消注释这几句话
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
然后
source .bashrc