Skip to content

Instantly share code, notes, and snippets.

@d-kuro
Last active October 17, 2018 10:28
Show Gist options
  • Save d-kuro/605a44ebd1d4a28ecf318e9d2371645f to your computer and use it in GitHub Desktop.
Save d-kuro/605a44ebd1d4a28ecf318e9d2371645f to your computer and use it in GitHub Desktop.
kubectl で補完を有効にするときのメモ

kubectl で補完を有効にする

zsh

echo "source <(kubectl completion zsh)" >> ~/.zshrc

bash

Mac なら Homebrew で bash-completion を入れる。

brew install bash-completion
echo "source <(kubectl completion bash)" >> ~/.bashrc

が、なんかうまくいかなかったので zsh に以降した話。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment