Updated Homebrew formula and spec

master
Martin Gondermann 9 years ago
parent c4a0a2debc
commit fc2953fbc6
  1. 5
      bash-git-prompt.rb
  2. 2
      bash-git-prompt.spec

@ -18,10 +18,9 @@ class BashGitPrompt < Formula
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):
if [ -f "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" ]; then if [ -f #{HOMEBREW_PREFIX}/share/gitprompt.sh ]; then
GIT_PROMPT_THEME=Default GIT_PROMPT_THEME=Default
__GIT_PROMPT_DIR=$(brew --prefix)/opt/bash-git-prompt/share . #{HOMEBREW_PREFIX}/share/gitprompt.sh
source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh"
fi fi
EOS EOS
end end

@ -2,7 +2,7 @@
%global END_TOKEN ### Generated by %{name} rpm package %global END_TOKEN ### Generated by %{name} rpm package
Name: bash-git-prompt Name: bash-git-prompt
Version: 2.6.1 Version: 2.6.2
Release: 1%{?dist} Release: 1%{?dist}
Summary: Informative git prompt for bash and fish Summary: Informative git prompt for bash and fish

Loading…
Cancel
Save