From 81af6557d88629d8966f3665ec78c8274f333892 Mon Sep 17 00:00:00 2001 From: Martin Gondermann Date: Fri, 29 Aug 2014 14:12:55 +0200 Subject: [PATCH] Added homebrew formula --- bash-git-prompt.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 bash-git-prompt.rb diff --git a/bash-git-prompt.rb b/bash-git-prompt.rb new file mode 100644 index 0000000..ba42857 --- /dev/null +++ b/bash-git-prompt.rb @@ -0,0 +1,23 @@ +require "formula" + +class BashGitPrompt < Formula + homepage "https://github.com/magicmonty/bash-git-prompt" + url "https://github.com/magicmonty/bash-git-prompt/archive/2.0.tar.gz" + head "https://github.com/magicmonty/bash-git-prompt", :using => :git + sha1 "3c0bc71302b97260cf8d14a1f01be732039365b9" + + def install + prefix.install Dir['./*'] + end + + def caveats; <<-EOS.undent + Add the following lines to your .bashrc: + + if [ -f #{prefix}/gitprompt.sh ]; then + . #{prefix}/gitprompt.sh + fi + + For further information see the README.md in #{prefix} + EOS + end +end