bug-bash
[Top][All Lists]
Advanced

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

Re: No Color for Bash Completion Results


From: Dennis Williamson
Subject: Re: No Color for Bash Completion Results
Date: Sat, 5 Feb 2011 13:58:39 -0600

On Sat, Feb 5, 2011 at 1:35 PM, Roger <address@hidden> wrote:
> When using bash completion on files within local folder, ie. "$ ls f<tab>"
> showing results for files starting with char "f" -- or any char(s) you may
> specify, results are not provided in color when bash, terminal and ls are
> configured for using color.
>
> I do believe, results for bash completion on files were at one time in color.
>
> To further troubleshoot, I removed /etc/bash/bashrc and $HOME/.bashrc and only
> enabling related color commands.
>
>
>
> I have tracked this down to the call:
>
> compgen -d -- "$quoted"
>
> (Give or take some commands as I found this by using strace/ltrace or grepping
> the files belonging to bash/bash-completion packages.)
>
> Doing something like "compgen -d |ls --color" does provide color, but is 
> likely
> not proper.  I believe compgen is provided by bash and not bash-completion.
>
>
> Using the following packages:
> =app-shells/bash-4.1_p9
> =app-shells/bash-completion-1.2
> =app-shells/gentoo-bashcomp-20101217
>
> Using both rxvt-unicode and framebuffer console.
>
> Grepping around, I can see no references to anything color related when 
> dealing
> with compgen or $COMPREPLY.  I did trace the "ls" (core-utils) to
> "/usr/share/bash-completion/base" of bash-completion.
>
> Any ideas?
>
>
> --
> Roger
> http://rogerx.freeshell.org/
>
>

Zsh does that and fish does match highlighting in color. I don't
remember ever seeing Bash do it, though.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]