git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bash-completion now loads completions dynamically, so __git_ps1 is not defined when you open a shell
@ 2012-03-28 20:27 Kerrick Staley
  2012-03-28 22:17 ` Junio C Hamano
  2012-03-28 23:06 ` Jonathan Nieder
  0 siblings, 2 replies; 8+ messages in thread
From: Kerrick Staley @ 2012-03-28 20:27 UTC (permalink / raw)
  To: git

The __git_ps1 function is defined in same script that defines Git's
tab completions (contrib/completion/git-completion.bash). Since
bash-completion loads completions on-the-fly in newer versions, the
__git_ps1 function isn't immediately available in a new shell. How
should this be handled? Should users just source git-completion.bash
before they redefine $PS1?

-Kerrick Staley

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-04-07 13:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 20:27 bash-completion now loads completions dynamically, so __git_ps1 is not defined when you open a shell Kerrick Staley
2012-03-28 22:17 ` Junio C Hamano
2012-03-29  5:57   ` Jeff King
2012-03-28 23:06 ` Jonathan Nieder
2012-03-29  0:00   ` Kerrick Staley
2012-03-29  5:49     ` Jeff King
2012-04-07 13:01     ` Felipe Contreras
2012-04-07 13:47       ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).