From fc2953fbc6f482f20ffd281822b6cae22ab922b0 Mon Sep 17 00:00:00 2001 From: Martin Gondermann Date: Sun, 26 Mar 2017 20:14:05 +0200 Subject: [PATCH] Updated Homebrew formula and spec --- bash-git-prompt.rb | 5 ++--- bash-git-prompt.spec | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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