homebrew-core/Formula/liquidprompt.rb
Brad Beyenhof 310736cc7c
liquidprompt: point HEAD at "develop" branch
Closes .

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2018-08-20 03:13:17 +01:00

32 lines
1.1 KiB
Ruby

class Liquidprompt < Formula
desc "Adaptive prompt for bash and zsh shells"
homepage "https://github.com/nojhan/liquidprompt"
url "https://github.com/nojhan/liquidprompt/archive/v_1.11.tar.gz"
sha256 "669dde6b8274a57b3e39dc41539d157a86252e40e39bcc4c3102b5a81bd8f2f5"
head "https://github.com/nojhan/liquidprompt.git", :branch => "develop"
bottle :unneeded
def install
share.install "liquidpromptrc-dist"
share.install "liquidprompt"
end
def caveats; <<~EOS
Add the following lines to your bash or zsh config (e.g. ~/.bash_profile):
if [ -f #{HOMEBREW_PREFIX}/share/liquidprompt ]; then
. #{HOMEBREW_PREFIX}/share/liquidprompt
fi
If you'd like to reconfigure options, you may do so in ~/.liquidpromptrc.
A sample file you may copy and modify has been installed to
#{HOMEBREW_PREFIX}/share/liquidpromptrc-dist
EOS
end
test do
liquidprompt = "#{HOMEBREW_PREFIX}/share/liquidprompt"
output = shell_output("/bin/sh #{liquidprompt} 2>&1")
assert_match "add-zsh-hook: command not found", output
end
end