2014-09-11 18:20:44 +00:00
|
|
|
class BashGitPrompt < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Informative, fancy bash prompt for Git users"
|
2014-09-11 18:20:44 +00:00
|
|
|
homepage "https://github.com/magicmonty/bash-git-prompt"
|
2015-02-09 20:46:09 +00:00
|
|
|
url "https://github.com/magicmonty/bash-git-prompt/archive/2.3.5.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "35a8fe71a7b36b982b6cf53a0fb0c7f89559c29d65cd6cd5c95b26a19964b5ef"
|
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-10-04 20:14:29 +00:00
|
|
|
share.install "gitprompt.sh", "gitprompt.fish", "git-prompt-help.sh",
|
|
|
|
"gitstatus.sh", "prompt-colors.sh"
|
|
|
|
|
2014-10-11 19:19:34 +00:00
|
|
|
(share/"themes").install Dir["themes/*.bgptheme"], "themes/Custom.bgptemplate"
|
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):
|
2014-10-27 03:30:28 +00:00
|
|
|
if [ -f "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" ]; then
|
2014-10-11 19:19:34 +00:00
|
|
|
GIT_PROMPT_THEME=Default
|
2014-10-27 03:30:28 +00:00
|
|
|
source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh"
|
2014-10-04 20:14:29 +00:00
|
|
|
fi
|
2014-09-11 18:20:44 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|