diff options
author | Jeff Henson | 2019-01-12 13:36:44 -0700 |
---|---|---|
committer | Jeff Henson | 2019-01-12 13:36:44 -0700 |
commit | e2ff4ece25631979c2aa57fa386803fec600d60e (patch) | |
tree | 460104b00140c5b6ce537531af25c071d27c845e /PKGBUILD | |
parent | 72d0c914483ff467d9f10916a0debfb25dc99919 (diff) | |
download | aur-e2ff4ece25631979c2aa57fa386803fec600d60e.tar.gz |
Fix zsh completions
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgname=origin-client pkgdesc="Openshift client binary" pkgver=3.11.0 -pkgrel=1 +pkgrel=2 arch=('x86_64') url="https://github.com/openshift/origin" license=('Apache') @@ -12,6 +12,10 @@ sha256sums=('SKIP') build() { cd "${srcdir}/origin" + + # Fix zsh completion + sed -i 's/kubectl/oc/g' contrib/completions/zsh/oc + make WHAT=cmd/oc hack/generate-docs.sh } @@ -21,6 +25,6 @@ package() { install -Dm755 _output/local/bin/linux/amd64/oc -t "$pkgdir/usr/bin" install -Dm644 docs/man/man1/* -t "$pkgdir/usr/share/man/man1" - "$pkgdir/usr/bin/oc" completion bash | install -Dm644 /dev/stdin "$pkgdir/usr/share/bash-completion/completions/oc" - "$pkgdir/usr/bin/oc" completion zsh | install -Dm644 /dev/stdin "$pkgdir/usr/share/zsh/site-functions/_oc" + install -Dm644 contrib/completions/bash/oc "$pkgdir/usr/share/bash-completion/completions/oc" + install -Dm644 contrib/completions/zsh/oc "$pkgdir/usr/share/zsh/site-functions/_oc" } |