Setup fish completion when installing with Homebrew

This commit is contained in:
Mislav Marohnić 2020-01-30 21:36:56 +01:00
parent 526714cfd2
commit 1be8bb990d

View file

@ -62,6 +62,7 @@ brews:
bin.install "bin/gh"
(bash_completion/"gh.sh").write `#{bin}/gh completion -s bash`
(zsh_completion/"_gh").write `#{bin}/gh completion -s zsh`
(fish_completion/"gh.fish").write `#{bin}/gh completion -s fish`
test: |
help_text = shell_output("#{bin}/gh --help")
assert_includes help_text, "Usage:"