Problem
Bash <tab>
autocompletion ignores $LS_COLORS
variable and uses default color values.
Setting
I have a dircolors file and just the following declarations in .bashrc:
eval `dircolors $HOME/.config/bash/dircolors`
bind 'set colored-stats on'
bind 'set colored-completion-prefix on'
alias ls='ls --group-directories-first --color=auto'
The ls
output is correctly colored by colors from $LS_COLORS
and coloring for tab autocompletion is turned on. However tab autocompletion ignores $LS_COLORS
and uses some default value (screenshot):
Context
I am on macOS 13.2.1, using Apple Terminal. GNU bash (5.2.15) and GNU ls (9.1, coreutils) installed via macports.
Question
Interested in any pointers about how to start solving this isssue?
Maybe someone can point me to which source files determine the logic behind color-coding autocompletions in bash?
Any tips are appreciated.
$LS_COLORS
are still ignored.dircolors --print-database
, there file types are stated as i wrote above. The other stuff is "file extensions"--print-database
, when I have$LS_COLORS
set up.