2015-06-14 02:40:22 +00:00
|
|
|
class Antigen < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Plugin manager for zsh, inspired by oh-my-zsh and vundle."
|
2015-06-14 02:40:22 +00:00
|
|
|
homepage "http://antigen.sharats.me/"
|
2017-02-27 06:46:03 +00:00
|
|
|
url "https://github.com/zsh-users/antigen/releases/download/v1.4.1/v1.4.1.tar.gz"
|
|
|
|
sha256 "a2f30020ff8414341d855e33b6dfdc4827cd2079e1f7297ef65cd9a380e66cd8"
|
2015-06-14 02:40:22 +00:00
|
|
|
head "https://github.com/zsh-users/antigen.git"
|
|
|
|
|
2015-10-23 08:26:43 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-06-14 02:40:22 +00:00
|
|
|
def install
|
2016-09-10 06:14:41 +00:00
|
|
|
pkgshare.install "bin/antigen.zsh"
|
2015-06-14 02:40:22 +00:00
|
|
|
end
|
|
|
|
|
2016-03-13 00:42:29 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To activate antigen, add the following to your ~/.zshrc:
|
2016-12-08 02:44:39 +00:00
|
|
|
source #{HOMEBREW_PREFIX}/share/antigen/antigen.zsh
|
2016-03-13 00:42:29 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2015-06-14 02:40:22 +00:00
|
|
|
test do
|
2016-12-08 02:44:39 +00:00
|
|
|
(testpath/".zshrc").write "source #{HOMEBREW_PREFIX}/share/antigen/antigen.zsh\n"
|
2016-08-27 19:26:35 +00:00
|
|
|
system "zsh", "--login", "-i", "-c", "antigen help"
|
2015-06-14 02:40:22 +00:00
|
|
|
end
|
|
|
|
end
|