diff --git a/bash-git-prompt.rb b/bash-git-prompt.rb index decb739..a533520 100644 --- a/bash-git-prompt.rb +++ b/bash-git-prompt.rb @@ -18,10 +18,9 @@ class BashGitPrompt < Formula def caveats; <<-EOS.undent 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_DIR=$(brew --prefix)/opt/bash-git-prompt/share - source "$(brew --prefix bash-git-prompt)/share/gitprompt.sh" + . #{HOMEBREW_PREFIX}/share/gitprompt.sh fi EOS end diff --git a/bash-git-prompt.spec b/bash-git-prompt.spec index 698e1fb..597c0d7 100644 --- a/bash-git-prompt.spec +++ b/bash-git-prompt.spec @@ -2,7 +2,7 @@ %global END_TOKEN ### Generated by %{name} rpm package Name: bash-git-prompt -Version: 2.6.1 +Version: 2.6.2 Release: 1%{?dist} Summary: Informative git prompt for bash and fish