debian配置终端Tab自动补全

  • 确保 bash-completion 软件包已安装
apt update
apt install bash-completion
  • 配置~/.bashrc
# 为 root 用户启用 Bash 补全
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
重启 或 source ~/.bashrc

你可能感兴趣的:(debian配置终端Tab自动补全)