2014-09-11 18:20:44 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class BashGitPrompt < Formula
|
|
|
|
homepage "https://github.com/magicmonty/bash-git-prompt"
|
2014-10-01 19:28:09 +00:00
|
|
|
url "https://github.com/magicmonty/bash-git-prompt/archive/2.1.tar.gz"
|
|
|
|
sha1 "9bd29dc2aa4859d2f4c0736cb26cc177de9c1274"
|
2014-09-15 09:30:39 +00:00
|
|
|
head "https://github.com/magicmonty/bash-git-prompt.git"
|
2014-09-11 18:20:44 +00:00
|
|
|
|
|
|
|
def install
|
2014-09-15 09:30:39 +00:00
|
|
|
share.install "./gitprompt.sh", "./gitprompt.fish", "./git-prompt-help.sh",
|
|
|
|
"./git-prompt-colors.sh", "gitstatus.sh", "prompt-colors.sh"
|
2014-09-11 18:20:44 +00:00
|
|
|
doc.install "README.md"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2014-09-15 09:30:39 +00:00
|
|
|
You should add the following to your .bashrc (or equivalent):
|
|
|
|
source #{opt_share}/gitprompt.sh
|
2014-09-11 18:20:44 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|