2013-03-15 03:50:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Liquidprompt < Formula
|
|
|
|
homepage 'https://github.com/nojhan/liquidprompt'
|
2014-01-16 17:57:21 +00:00
|
|
|
url 'https://github.com/nojhan/liquidprompt/archive/v_1.8.tar.gz'
|
|
|
|
sha1 'ad481e98b0f6ed251cd65cb01464da151929f081'
|
2013-03-15 03:50:42 +00:00
|
|
|
|
|
|
|
def install
|
2014-01-16 17:57:21 +00:00
|
|
|
share.install 'liquidpromptrc-dist'
|
|
|
|
share.install 'liquidprompt'
|
2013-03-15 03:50:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Add the following lines to your bash or zsh config (e.g. ~/.bash_profile):
|
2014-01-16 17:57:21 +00:00
|
|
|
if [ -f #{HOMEBREW_PREFIX}/share/liquidprompt ]; then
|
|
|
|
. #{HOMEBREW_PREFIX}/share/liquidprompt
|
2013-03-15 03:50:42 +00:00
|
|
|
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
|
2014-01-16 17:57:21 +00:00
|
|
|
#{HOMEBREW_PREFIX}/share/liquidpromptrc-dist
|
2013-03-15 03:50:42 +00:00
|
|
|
|
|
|
|
Don't modify the PROMPT_COMMAND variable elsewhere in your shell config;
|
|
|
|
that will break things.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|