homebrew-core/Formula/antigen.rb
2018-01-03 21:58:47 -08:00

24 lines
761 B
Ruby

class Antigen < Formula
desc "Plugin manager for zsh, inspired by oh-my-zsh and vundle"
homepage "http://antigen.sharats.me/"
url "https://github.com/zsh-users/antigen/releases/download/v2.2.3/v2.2.3.tar.gz"
sha256 "bd3f1077050d52f459bc30fa3f025c44c528d625b4924a2f487fd2bacb89d61e"
head "https://github.com/zsh-users/antigen.git", :branch => "develop"
bottle :unneeded
def install
pkgshare.install "bin/antigen.zsh"
end
def caveats; <<~EOS
To activate antigen, add the following to your ~/.zshrc:
source #{HOMEBREW_PREFIX}/share/antigen/antigen.zsh
EOS
end
test do
(testpath/".zshrc").write "source #{HOMEBREW_PREFIX}/share/antigen/antigen.zsh\n"
system "zsh", "--login", "-i", "-c", "antigen help"
end
end