Skip to content

Commit

Permalink
Fix kubectl completion setup to be idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Jul 18, 2024
1 parent 6f86f38 commit 323197d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ echo "export RESOURCES_PRECREATED='${RESOURCES_PRECREATED}'" > ~/.bashrc.d/infra

echo "export ANALYTICS_ENDPOINT='${ANALYTICS_ENDPOINT}'" > ~/.bashrc.d/analytics.bash

/usr/local/bin/kubectl completion bash >> ~/.bashrc.d/kubectl_completion.bash
/usr/local/bin/kubectl completion bash > ~/.bashrc.d/kubectl_completion.bash
echo "alias k=kubectl" >> ~/.bashrc.d/kubectl_completion.bash
echo "complete -F __start_kubectl k" >> ~/.bashrc.d/kubectl_completion.bash

0 comments on commit 323197d

Please sign in to comment.