解决安装docker后用户登录_have: command not found异常
博客专区 > alinker 的博客 > 博客详情
解决安装docker后用户登录_have: command not found异常
alinker 发表于10个月前
解决安装docker后用户登录_have: command not found异常
  • 发表于 10个月前
  • 阅读 28
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

打开 /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"

}
标签: Docker
共有 人打赏支持
粉丝 0
博文 2
码字总数 608
×
alinker
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: