|
|
|
@ -2,17 +2,18 @@ require "formula" |
|
|
|
|
|
|
|
|
|
|
|
class BashGitPrompt < Formula |
|
|
|
class BashGitPrompt < Formula |
|
|
|
homepage "https://github.com/magicmonty/bash-git-prompt" |
|
|
|
homepage "https://github.com/magicmonty/bash-git-prompt" |
|
|
|
url "https://github.com/magicmonty/bash-git-prompt/archive/2.0.tar.gz" |
|
|
|
url "https://github.com/magicmonty/bash-git-prompt/archive/2.1.tar.gz" |
|
|
|
head "https://github.com/magicmonty/bash-git-prompt", :using => :git |
|
|
|
sha1 "9bd29dc2aa4859d2f4c0736cb26cc177de9c1274" |
|
|
|
sha1 "3c0bc71302b97260cf8d14a1f01be732039365b9" |
|
|
|
head "https://github.com/magicmonty/bash-git-prompt.git" |
|
|
|
|
|
|
|
|
|
|
|
def install |
|
|
|
def install |
|
|
|
share.install Dir["./gitprompt.{sh,fish}"], Dir["./git-prompt-{help,colors}.sh"], "gitstatus.sh", "prompt-colors.sh" |
|
|
|
share.install "./gitprompt.sh", "./gitprompt.fish", "./git-prompt-help.sh", |
|
|
|
|
|
|
|
"./git-prompt-colors.sh", "gitstatus.sh", "prompt-colors.sh" |
|
|
|
doc.install "README.md" |
|
|
|
doc.install "README.md" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent |
|
|
|
def caveats; <<-EOS.undent |
|
|
|
You should add the following to your .bashrc or equivalent: |
|
|
|
You should add the following to your .bashrc (or equivalent): |
|
|
|
source #{opt_share}/gitprompt.sh |
|
|
|
source #{opt_share}/gitprompt.sh |
|
|
|
EOS |
|
|
|
EOS |
|
|
|
end |
|
|
|
end |
|
|
|
|