conda-zsh-completion 0.9 (new formula)
* feat: a formula to install conda-zsh-completion * test: add test for conda-zsh-completion.rb * fix: make the syntax of regex more rigorous Closes #117222. Signed-off-by: Rui Chen <rui@chenrui.dev> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
3995cd7402
commit
fafb9d8c5f
|
@ -0,0 +1,19 @@
|
|||
class CondaZshCompletion < Formula
|
||||
desc "Zsh completion for conda"
|
||||
homepage "https://github.com/conda-incubator/conda-zsh-completion"
|
||||
url "https://github.com/conda-incubator/conda-zsh-completion/archive/refs/tags/v0.9.tar.gz"
|
||||
sha256 "beb79bfe083551628cad3fe6bb6e39cd638c1c44f83a3c9c7f251ec4d20b5ade"
|
||||
license "WTFPL"
|
||||
head "https://github.com/conda-incubator/conda-zsh-completion.git", branch: "master"
|
||||
|
||||
uses_from_macos "zsh" => :test
|
||||
|
||||
def install
|
||||
zsh_completion.install "_conda"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match(/^_conda \(\) \{/,
|
||||
shell_output("zsh -c 'fpath=(#{zsh_completion} $fpath); autoload _conda; which _conda'"))
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue