Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 432600

Summary: Mention git-prompt bashcomp if git bashcomp is enabled and __git_ps1 is used
Product: Gentoo Linux Reporter: Adrian <adrian>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: adrian
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Adrian 2012-08-24 15:11:25 UTC
Apparently a recent git upgrade moved __git_ps1 out of the 'git' bashcomp and into a separate 'git-prompt' module. Not noticing this it results in annoying "-bash: __git_ps1: command not found" messages everytime a bash prompt is displayed.

It would be much better if there was a notice when emerging git versions that contain this chance to inform people about it. The ebuild could even check if $PS1 contains __git_ps1 to display the message only if necessary (or simply check if any user has the 'git' bashcomp enabled).

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-24 15:15:49 UTC

*** This bug has been marked as a duplicate of bug 432328 ***