【问题标题】:Enable kubectl autocompletion on aws cloudshell在 aws cloudshell 上启用 kubectl 自动完成
【发布时间】:2022-01-07 02:30:09
【问题描述】:

我按照https://kubernetes.io/docs/tasks/tools/included/optional-kubectl-configs-bash-linux/ 中的所有说明启用了 kubectl 自动补全。

我在 ~/.bashrc 中有 source <(kubectl completion bash)

当我运行命令 . ./.bashrc 时,自动完成工作正常。
当 shell 重新启动时,自动完成功能不起作用。

我错过了什么?

【问题讨论】:

    标签: bash amazon-web-services kubectl aws-cloudshell


    【解决方案1】:

    我修复了运行kubectl completion bash > $HOME/.bash_completion的问题

    【讨论】:

      猜你喜欢
      • 2021-12-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-19
      • 2016-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-10
      相关资源
      最近更新 更多