On Thu, Oct 29, 2020 at 4:11 AM Arnaud <listes...@gmail.com> wrote: > > Description: > I have colored my prompt with colors, using PS1 and PS0. > > PS1 ends with a color definition, so the command entered is > colored. > PS0 resets the color so the output has the standard colors. > I have actived colored-stats, so when I use tab completion, the > colors I use in the command doesn't show in the tab completion. > > Problem 1 > If the list starts with a file, only the 1st file is colored with > the PS1 color. > If the list starts with a folder, the colors are ok. > > Problem 2 > when I list the content of a folder with ls, the color is ok > (white in my case, until I reach a folder, > it then switches the color of the following files to grey. > > I tried looking in the bash code to try to find the problem, but I > cannot locate the part of the code for that (not experienced in C) > Normally, readline should be the part I am looking for, but I also > have readline installed in my system, so it should be in it? > (tried to remove the readline package in my system to be sure, but > it wants to remove systemd, so I didn't) > > it seems to also do this with 5.1-rc1 > > Repeat-By: > add "set colored-stats on" in ~/.inputrc (may need to restart the > shell) > add at the end of PS1: "(\[\€[38;5;220m\]" , for example > add for PS0: "\[\e[38;5;15m\]" >
I can reproduce the similar issue with my bash 4.4.12 and PS0="\[\e[0m\]" fix it for me. -clark