解决安装docker后用户登录_have: command not found异常

打开 /etc/bash_completion 找到 have()方法,复制一份改为_have()方法

 _have(){
     unset -v have
    # Completions for system administrator commands are installed as well in
    # case completion is attempted via `sudo command ...'.
    # In this packaged setup we don't need to do the availability test below
    # because only completions for commands that are actually available should
    # be in /etc/bash_completion.d anyway; not doing the test improves our load
    # time significantly.
    #PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
    have="yes"

}

转载于:https://my.oschina.net/codelinker/blog/840652

你可能感兴趣的:(解决安装docker后用户登录_have: command not found异常)