From 5496b4cdb2412f8c5758ac55485f9fca9aefde95 Mon Sep 17 00:00:00 2001 From: Martin Gondermann Date: Sat, 11 Oct 2014 21:22:30 +0200 Subject: [PATCH] updated homebrew formula --- bash-git-prompt.rb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/bash-git-prompt.rb b/bash-git-prompt.rb index 528d80d6..48c1ded7 100644 --- a/bash-git-prompt.rb +++ b/bash-git-prompt.rb @@ -2,19 +2,24 @@ class BashGitPrompt < Formula homepage "https://github.com/magicmonty/bash-git-prompt" - url "https://github.com/magicmonty/bash-git-prompt/archive/2.1.tar.gz" - sha1 "9bd29dc2aa4859d2f4c0736cb26cc177de9c1274" + url "https://github.com/magicmonty/bash-git-prompt/archive/2.3.tar.gz" + sha1 "a4e692ef33b691724df6ac9582c204d31dbb853a" head "https://github.com/magicmonty/bash-git-prompt.git" def install - share.install "./gitprompt.sh", "./gitprompt.fish", "./git-prompt-help.sh", - "./git-prompt-colors.sh", "gitstatus.sh", "prompt-colors.sh" + share.install "gitprompt.sh", "gitprompt.fish", "git-prompt-help.sh", + "gitstatus.sh", "prompt-colors.sh" + + (share/"themes").install Dir["themes/*.bgptheme"], "themes/Custom.bgptemplate" doc.install "README.md" end def caveats; <<-EOS.undent You should add the following to your .bashrc (or equivalent): - source #{opt_share}/gitprompt.sh + if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then + GIT_PROMPT_THEME=Default + source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" + fi EOS end end