From f08f1334e3b33711d7dd6e4db3a0221d9e8287df Mon Sep 17 00:00:00 2001 From: "survolog (Andrey Grigorev)" Date: Thu, 27 Jul 2023 10:17:26 +0300 Subject: [PATCH] Fix access for __git_ps1 function in prompt --- 93git-branch.sh | 1 + git.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/93git-branch.sh b/93git-branch.sh index ef42c1c..8b597b0 100644 --- a/93git-branch.sh +++ b/93git-branch.sh @@ -1,5 +1,6 @@ # Include the current git branch in the prompt +. /etc/bash-completion.d/git-prompt if type __git_ps1 &>/dev/null; then export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")\]|")" fi diff --git a/git.spec b/git.spec index dc31a58..b35b036 100644 --- a/git.spec +++ b/git.spec @@ -8,7 +8,7 @@ Summary: Global Information Tracker Name: git Version: 2.40.1 -Release: 1 +Release: 2 Epoch: 1 License: GPLv2+ Group: Development/Tools