Re: small tip regarding git branch bash prompt in F18/Rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2012-08-22 at 16:12 -0700, Adam Williamson wrote:
> Hey folks - just in case you haven't all figured this out yet, if 
> you're using the neat little trick of putting a few lines in your 
> ~/.bashrc so that when you're in a directory containing a git repo, the 
> prompt will display what branch you're in, it'll stop working when you 
> update to the latest git - 1.7.12 - in F18 or Rawhide. To fix it, you 
> need to change:
> 
> source /etc/bash_completion.d/git
> 
> to:
> 
> source /usr/share/doc/git-1.7.12/contrib/completion/git-prompt.sh
> 
> because upstream split the prompt stuff out from the bash_completion 
> script. Perhaps the git packagers could consider providing git-prompt.sh 
> in a more permanent location, so we don't have to poke .bashrc every 
> time the git version changes? Thanks!

Heads up, everyone, it got moved again (from the last location
in /etc/profile.d). Stay sharp at all times! Look both ways before
crossing the street!

Now you have to do:

source /usr/share/git-core/contrib/completion/git-prompt.sh
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux