k9s: install completions
This commit is contained in:
parent
d2937167d7
commit
7a2f02eed6
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue