homebrew-core/Formula/zplug.rb
FX Coudert bd06c60f9e zplug: remove options
Closes #35734.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-01-10 15:10:16 +01:00

28 lines
770 B
Ruby

class Zplug < Formula
desc "The next-generation plugin manager for zsh"
homepage "https://zplug.sh/"
url "https://github.com/zplug/zplug/archive/2.4.2.tar.gz"
sha256 "82a51e8c388844acbfb64196623bede07eee2384f1fc30966eac880373aa9030"
head "https://github.com/zplug/zplug.git"
bottle :unneeded
def install
bin.install Dir["bin/*"]
man1.install "doc/man/man1/zplug.1"
prefix.install Dir["*"]
touch prefix/"packages.zsh"
end
def caveats; <<~EOS
In order to use zplug, please add the following to your .zshrc:
export ZPLUG_HOME=#{opt_prefix}
source $ZPLUG_HOME/init.zsh
EOS
end
test do
ENV["ZPLUG_HOME"] = opt_prefix
system "zsh", "-c", "source #{opt_prefix}/init.zsh && (( $+functions[zplug] ))"
end
end