8bc87655f3
Closes Homebrew/homebrew#34270. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
27 lines
856 B
Ruby
27 lines
856 B
Ruby
require 'formula'
|
|
|
|
class Liquidprompt < Formula
|
|
homepage 'https://github.com/nojhan/liquidprompt'
|
|
url 'https://github.com/nojhan/liquidprompt/archive/v_1.9.tar.gz'
|
|
sha1 'c4bc4027810bd5fd1b727f2be724eaf12c03e7cb'
|
|
|
|
def install
|
|
share.install 'liquidpromptrc-dist'
|
|
share.install 'liquidprompt'
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
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
|
|
|
|
Don't modify the PROMPT_COMMAND variable elsewhere in your shell config;
|
|
that will break things.
|
|
EOS
|
|
end
|
|
end
|