Skip to content

Commit 5496b4c

Browse files
committed
updated homebrew formula
1 parent 5a09d4a commit 5496b4c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

bash-git-prompt.rb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@
22

33
class BashGitPrompt < Formula
44
homepage "https://github.com/magicmonty/bash-git-prompt"
5-
url "https://github.com/magicmonty/bash-git-prompt/archive/2.1.tar.gz"
6-
sha1 "9bd29dc2aa4859d2f4c0736cb26cc177de9c1274"
5+
url "https://github.com/magicmonty/bash-git-prompt/archive/2.3.tar.gz"
6+
sha1 "a4e692ef33b691724df6ac9582c204d31dbb853a"
77
head "https://github.com/magicmonty/bash-git-prompt.git"
88

99
def install
10-
share.install "./gitprompt.sh", "./gitprompt.fish", "./git-prompt-help.sh",
11-
"./git-prompt-colors.sh", "gitstatus.sh", "prompt-colors.sh"
10+
share.install "gitprompt.sh", "gitprompt.fish", "git-prompt-help.sh",
11+
"gitstatus.sh", "prompt-colors.sh"
12+
13+
(share/"themes").install Dir["themes/*.bgptheme"], "themes/Custom.bgptemplate"
1214
doc.install "README.md"
1315
end
1416

1517
def caveats; <<-EOS.undent
1618
You should add the following to your .bashrc (or equivalent):
17-
source #{opt_share}/gitprompt.sh
19+
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
20+
GIT_PROMPT_THEME=Default
21+
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
22+
fi
1823
EOS
1924
end
2025
end

0 commit comments

Comments
 (0)