aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bash-git-prompt.rb
blob: 104797fe299ba08910fecb018c681678ec4f386c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"
  sha1 "3c0bc71302b97260cf8d14a1f01be732039365b9"
  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"
    doc.install "README.md"
  end

  def caveats; <<-EOS.undent
    You should add the following to your .bashrc (or equivalent):
      source #{opt_share}/gitprompt.sh
    EOS
  end
end