Skip to content

Commit

Permalink
github-cli: install shell completion
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrlsnchs committed Sep 21, 2020
1 parent e5bc70d commit e3f4b31
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion srcpkgs/github-cli/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'github-cli'
pkgname=github-cli
version=1.0.0
revision=1
revision=2
wrksrc="cli-${version}"
build_style=go
go_import_path="github.com/cli/cli/cmd/gh"
Expand All @@ -24,4 +24,10 @@ pre_build() {

post_install() {
vlicense LICENSE

# install shell completions
for shell_compl in bash fish zsh; do
${DESTDIR}/usr/bin/gh completion -s ${shell_compl} > /tmp/completion.${shell_compl}
vcompletion /tmp/completion.${shell_compl} ${shell_compl} gh
done
}

0 comments on commit e3f4b31

Please sign in to comment.