Skip to content

Instantly share code, notes, and snippets.

@erdii

erdii/completion_hack.diff Secret

Created Mar 27, 2021
Embed
What would you like to do?
diff --git a/PKGBUILD b/PKGBUILD
index d0499e1..4bfb233 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,8 +16,8 @@ sha256sums=('e52795752079527824f7deae88996045ac67e7078eb4331a0793deae7d6500b7')
prepare() {
# generate completion
- $srcdir/oc completion bash > $srcdir/bash-completions
- $srcdir/oc completion zsh > $srcdir/zsh-completions
+ $srcdir/oc completion bash | sed 's/kubectl/oc/g' > $srcdir/bash-completions
+ $srcdir/oc completion zsh | sed 's/kubectl/oc/g' > $srcdir/zsh-completions
}
package() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment