From e3f4b3167672403995d88088d356d3f305aa9cf0 Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Mon, 21 Sep 2020 13:28:53 -0300 Subject: [PATCH] github-cli: install shell completion --- srcpkgs/github-cli/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index d1446631aeb..747a42be70d 100644 --- a/srcpkgs/github-cli/template +++ b/srcpkgs/github-cli/template @@ -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" @@ -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 }