How to Remove Dir Background in 'Ls -Color' Output

Color code of ls function

I showed a script in How to remove dir background in ls -color output which colorizes the output of dircolors -p (and would be useful in this question, since it preserves the comments which explain what's being colored).

Linux ls shows files with yellow background color

Just try ls -l to find out (this is faster than asking here).

Read ls(1) and look at your LS_COLORS environment variable using echo $LS_COLORS

(looks like you have suspicious sticky bit on plain files; see also this; try also stat(1) on the strange files....)

Don't use sticky bit on files (only on directories).

BTW, I suspect that setting sticky bit for git is a mistake.



Related Topics



Leave a reply



Submit