Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bash: __git_ps1: command not found - again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mkyral
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2007
Posts: 141
Location: Czech Republic

PostPosted: Mon Feb 10, 2014 4:33 pm    Post subject: bash: __git_ps1: command not found - again Reply with quote

Hi,
after last update, the file /usr/share/bash-completion/git-prompt is no more available. Does anybody know, what happen? Was it moved to different package?
Back to top
View user's profile Send private message
wdsci
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2007
Posts: 109
Location: Northeast United States

PostPosted: Thu Feb 13, 2014 1:35 am    Post subject: Reply with quote

I've noticed the same thing. I'm curious about the recommended way to enable git status information in the prompt these days.
Back to top
View user's profile Send private message
mkyral
Tux's lil' helper
Tux's lil' helper


Joined: 06 May 2007
Posts: 141
Location: Czech Republic

PostPosted: Thu Feb 13, 2014 6:10 am    Post subject: Reply with quote

yep.
I've downloaded it directly from the git repository: https://github.com/git/git/tree/master/contrib/completion
Back to top
View user's profile Send private message
wdsci
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2007
Posts: 109
Location: Northeast United States

PostPosted: Mon Feb 17, 2014 5:21 pm    Post subject: Reply with quote

This bug seems relevant. git-prompt.sh is no longer installed as a bash completion script because (according to the last comment) eselect behavior is going to be altered such that it wouldn't work with the script anymore.

I guess this means the recommended fix is to un-bzip /usr/share/doc/git-<version>/git-prompt.sh.bz2 into some convenient location, maybe your home directory, and manually source it from ~/.bashrc. Although you'd think there would be a more sensible place to put the file, like somewhere in /etc perhaps.[/bug]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum