bash开启自动补全

Posted 79 months ago linux bash comp 自动补全

linux bash开启自动补全

前提已经安装好了 bash-completion

在bashrc中加入

if [ -r /etc/bash_completion ]; then

  # Source completion code.

    . /etc/bash_completion

  fi

或者暴力一点


source /usr/share/bash-completion/bash_completion

然后

source .bashrc

点击评论