Skip to content

Commit

Permalink
fix: k alias autocompletion (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Suen <[email protected]>
  • Loading branch information
jessesuen authored May 9, 2024
1 parent 5a00345 commit 7b78e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions containers/akuity-devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ RUN wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/${K3D_VERSION}/ins
# This should be the same K8s version that kind creates.
ENV KUBECTL_VERSION=v1.29.3
RUN curl -Lo /usr/local/bin/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
&& chmod +x /usr/local/bin/kubectl \
&& echo 'source <(kubectl completion bash)' >> /usr/share/bash-completion/completions/kubectl
&& chmod +x /usr/local/bin/kubectl

ENV KUBECTX_VERSION=v0.9.5
RUN curl -Lo /tmp/kubectx.tar.gz "https://github.com/ahmetb/kubectx/releases/download/${KUBECTX_VERSION}/kubectx_${KUBECTX_VERSION}_linux_x86_64.tar.gz" \
Expand Down Expand Up @@ -80,4 +79,5 @@ RUN curl -Lo /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/downloa
# Add aliases and such
RUN echo 'source /etc/profile.d/bash_completion.sh' >> /etc/bash.bashrc \
&& echo 'alias k="kubectl"' >> /etc/bash.bashrc \
&& echo 'source <(kubectl completion bash)' >> /etc/bash.bashrc \
&& echo 'complete -F __start_kubectl k' >> /etc/bash.bashrc

0 comments on commit 7b78e22

Please sign in to comment.