eab9ec1c4c
Closes Homebrew/homebrew#34213. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
25 lines
853 B
Ruby
25 lines
853 B
Ruby
require "formula"
|
|
|
|
class BashGitPrompt < Formula
|
|
homepage "https://github.com/magicmonty/bash-git-prompt"
|
|
url "https://github.com/magicmonty/bash-git-prompt/archive/2.3.3.tar.gz"
|
|
sha1 "8b8cfe96db9955df885f060dbc7b4647a69db755"
|
|
head "https://github.com/magicmonty/bash-git-prompt.git"
|
|
|
|
def install
|
|
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):
|
|
if [ -f "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" ]; then
|
|
GIT_PROMPT_THEME=Default
|
|
source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh"
|
|
fi
|
|
EOS
|
|
end
|
|
end
|