24 lines
747 B
Ruby
24 lines
747 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/v1.4.0/v1.4.0.tar.gz"
|
|
sha256 "b76b7d15bf28afa114cc4540e4f02cc79645f9ceedd4d74b76e9f07199d9b2d0"
|
|
head "https://github.com/zsh-users/antigen.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
pkgshare.install "bin/antigen.zsh"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
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
|