hub: add fish completion

Closes #10585.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
master
Eloy Durán 2017-03-04 14:07:24 +01:00 committed by Baptiste Fontaine
parent f28c26daf3
commit 16183b8f63
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ class Hub < Formula
if build.with? "completions"
bash_completion.install "etc/hub.bash_completion.sh"
zsh_completion.install "etc/hub.zsh_completion" => "_hub"
# TODO: Remove the conditional when hub 2.3.0 is released.
fish_completion.install "etc/hub.fish_completion" => "hub.fish" unless build.stable?
end
end