-
-
Notifications
You must be signed in to change notification settings - Fork 11
Shell Auto completion
Wenhao Ji edited this page Nov 10, 2022
·
3 revisions
- Upgrade
kubectl tmux-execto at least v0.4.0. - Upgrade
kubectlto at least v1.26.0-alpha.3. - If installed by
Krew, please follow the additional steps.
Here are the steps to enable it in your terminal.
Run the following command to see if you are using the latest version.
kubectl tmux-exec --versionThe version in the output must be at least 0.4.0,
0.4.0 (commit = 3d6a5b36d99b2b462f97d422c094ca66d5a963e3)If not,
brew upgrade kubectl-tmux-execkubectl krew upgrade tmux-execDownload the latest release.
kubectl version --short --clientThe Client Version in the output must be at least v1.26.0-alpha.3,
Client Version: v1.26.0-alpha.3
Kustomize Version: v4.5.7Since this alpha version has not been released yet, you find the download link of the binary from the CHANGELOG.
which kubectl_complete-tmux_execThe output should be like
/usr/local/bin/kubectl_complete-tmux_execCurrently, Krew does not support installing the completion script automatically (see this issue for more information) to the PATH, we need to manually create a symbolic link by the following command.
(Replace v0.4.0 with the plugin version you are using)
ln -s "$HOME/.krew/store/tmux-exec/v0.4.0/bin/kubectl_complete-tmux_exec" "$HOME/.krew/bin/kubectl_complete-tmux_exec"Finally verify if it is on the PATH again by which kubectl_complete-tmux_exec.