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-01-16 17:09:20 +00:00
|
|
|
url "https://github.com/zsh-users/antigen/releases/download/v1.3.4/v1.3.4.tar.gz"
|
|
|
|
sha256 "8f0c7e1109f8ea2221cf42aba513ac0ce3adaef161ed7c4c83f505d4c9197e44"
|
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
|