mirror of
https://abf.rosa.ru/djam/git.git
synced 2025-02-23 09:43:00 +00:00
Fix access for __git_ps1 function in prompt
This commit is contained in:
parent
1eb0279724
commit
f08f1334e3
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
# Include the current git branch in the prompt
|
# Include the current git branch in the prompt
|
||||||
|
|
||||||
|
. /etc/bash-completion.d/git-prompt
|
||||||
if type __git_ps1 &>/dev/null; then
|
if type __git_ps1 &>/dev/null; then
|
||||||
export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")\]|")"
|
export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")\]|")"
|
||||||
fi
|
fi
|
||||||
|
|
2
git.spec
2
git.spec
|
@ -8,7 +8,7 @@
|
||||||
Summary: Global Information Tracker
|
Summary: Global Information Tracker
|
||||||
Name: git
|
Name: git
|
||||||
Version: 2.40.1
|
Version: 2.40.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
|
Loading…
Add table
Reference in a new issue