bash-git-prompt 2.2
Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
parent
9f6abb5efa
commit
36b9a4f0ea
1 changed files with 9 additions and 5 deletions
|
@ -2,19 +2,23 @@ require "formula"
|
|||
|
||||
class BashGitPrompt < Formula
|
||||
homepage "https://github.com/magicmonty/bash-git-prompt"
|
||||
url "https://github.com/magicmonty/bash-git-prompt/archive/2.1.tar.gz"
|
||||
sha1 "9bd29dc2aa4859d2f4c0736cb26cc177de9c1274"
|
||||
url "https://github.com/magicmonty/bash-git-prompt/archive/2.2.tar.gz"
|
||||
sha1 "392d430b87639e7f85fde02f2b4a37cb43be9aaf"
|
||||
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"
|
||||
share.install "gitprompt.sh", "gitprompt.fish", "git-prompt-help.sh",
|
||||
"gitstatus.sh", "prompt-colors.sh"
|
||||
|
||||
(share/"themes").install Dir["themes/*.bgptheme"]
|
||||
doc.install "README.md"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
You should add the following to your .bashrc (or equivalent):
|
||||
source #{opt_share}/gitprompt.sh
|
||||
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
|
||||
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
|
||||
fi
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue