mpc: install bash completion
Closes #32797. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
2bd1e5bbae
commit
db1a060ea0
1 changed files with 4 additions and 0 deletions
|
@ -20,9 +20,13 @@ class Mpc < Formula
|
|||
system "meson", "--prefix=#{prefix}", ".", "output"
|
||||
system "ninja", "-C", "output"
|
||||
system "ninja", "-C", "output", "install"
|
||||
|
||||
bash_completion.install "contrib/mpc-completion.bash" => "mpc"
|
||||
rm share/"doc/mpc/contrib/mpc-completion.bash"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "query", shell_output("#{bin}/mpc list 2>&1", 1)
|
||||
assert_match "-F _mpc", shell_output("source #{bash_completion}/mpc && complete -p mpc")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue