Last active
June 17, 2017 12:34
-
-
Save tongpu/10c38d0c8bf0b8f55d87d2d2f15397b5 to your computer and use it in GitHub Desktop.
kubectl-bin bash-completion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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