[arch-general] Funny issue with bash-completion and __git_ps1
gt
static.vortex at gmx.com
Wed Mar 28 12:12:08 EDT 2012
On Wed, Mar 28, 2012 at 09:19:37AM -0500, David C. Rankin wrote:
> On 03/28/2012 03:28 AM, gt wrote:
> >What would you recommend instead? I too face problems time and again
> >with bash-completion and would like to get rid of it. Do you have some
> >special settings in your .bashrc?
>
> No, just get rid of it. Your local bash completion will continue to
> work just fine without the 'bash_completion' package. I have had
> nothing but strange prompt issues with the package so I just finally
> removed it completely. Now completion and prompts work normal again
> -- in all situations.
Thanks i guess i'll remove it then.
On Wed, Mar 28, 2012 at 04:19:45PM +0200, Martti Kühne wrote:
> AFAIK, the bash_completion script that is installed with the bash-completion
> package merely is a latch script where all other software's completion routines
> are sourced from '/etc/bash_completion.d'. You're free to source or not source
> whatever you want from that directory without the latch script installed, since
> it's your system/cpu time. The dependencies arising from that can be made
> flexible by wrapping the source with a test -f each time. That would leave you
> with a few additional lines in your ~/.bashrc or /etc/bash.bashrc, while
> keeping out the bloated mess that is bash_completion.
> See also, /etc/bash.bashrc line 23
Thanks for the explanation, i'll take a look.
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the arch-general
mailing list