Skip to content

Instantly share code, notes, and snippets.

@tongpu
Last active June 17, 2017 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tongpu/10c38d0c8bf0b8f55d87d2d2f15397b5 to your computer and use it in GitHub Desktop.
Save tongpu/10c38d0c8bf0b8f55d87d2d2f15397b5 to your computer and use it in GitHub Desktop.
kubectl-bin bash-completion
--- PKGBUILD 2017-06-17 14:26:50.520424308 +0200
+++ PKGBUILD.completion 2017-06-17 14:29:26.654709540 +0200
@@ -17,4 +17,8 @@
package() {
install -Dm 755 "$srcdir/$_kubectl_file" "$pkgdir/usr/bin/kubectl"
+ install -d 755 "$pkgdir/usr/share/bash-completion/completions"
+ "$pkgdir/usr/bin/kubectl" completion bash > "$pkgdir/usr/share/bash-completion/completions/kubectl"
+ install -d 755 "$pkgdir/usr/share/zsh/site-functions"
+ "$pkgdir/usr/bin/kubectl" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_kubectl"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment