diff options
author | Samuel Collins | 2021-03-01 14:53:39 +0000 |
---|---|---|
committer | Samuel Collins | 2021-03-01 14:53:39 +0000 |
commit | 9282b1633c6b6e8b1c6df7b1a533d2172c8e0b76 (patch) | |
tree | 48b2262d5335001f27789f95016da787551a11dd /PKGBUILD | |
parent | 807864d976f41cd780660312f5259b0bc05ee2f0 (diff) | |
download | aur-gitlab-glab-git.tar.gz |
Added shell completions.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -3,8 +3,8 @@ pkgname=gitlab-glab-git _reponame=glab -pkgver=1.10.0.r20.ge626fce -pkgrel=1 +pkgver=1.15.0.r30.g9371da9 +pkgrel=2 epoch= pkgdesc="An open source GitLab CLI tool written in Go" arch=(x86_64) @@ -52,4 +52,9 @@ package() { cd "${_reponame}" install -Dm755 build/main "$pkgdir"/usr/bin/glab install -Dm644 $srcdir/${_reponame}/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" + + # Shell completions + build/main completion -s bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/glab" + build/main completion -s zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_glab" + build/main completion -s fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/glab.fish" } |