k9s: install completions

This commit is contained in:
Luca Bilke 2024-06-07 16:45:45 +02:00
parent d2937167d7
commit 7a2f02eed6
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'k9s'
pkgname=k9s
version=0.32.4
revision=1
revision=2
build_style=go
go_import_path="github.com/derailed/k9s"
go_ldflags="-X ${go_import_path}/cmd.version=${version}"
@ -14,3 +14,10 @@ checksum=597fa2c547437070a8993d1fb6fce91d696bd3731d37230feace3a2d3bfdb198
# fix: collect2: fatal error: cannot find 'ld'
export LDFLAGS="-fuse-ld=bfd"
post_install() {
for shell in bash zsh fish; do
${PKGDESTDIR}/usr/bin/${pkgname} completion "$shell" >"${pkgname}.$shell"
vcompletion "${pkgname}.$shell" "$shell"
done
}