24 lines
789 B
Ruby
24 lines
789 B
Ruby
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"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "366d8cd0e2e0dda5ea1f268cac68b214833c00ae09d94107a186f97b4eadde86"
|
|
end
|
|
|
|
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
|