How can I remove the background color for the sticky bit. LSCOLORS looks like this export LSCOLORS="Gxfxcxdxbxegedabagacad"
Using oh-my-zsh
Edit: As suggested I tested LSCOLORS="" ls but the colors are still there.

|
Your example doesn't show the sticky bit, it shows setgid. (sticky is Are you sure you need that? It seems wrong to me. Setgid on a directory means that files created in that directory will have the group from the directory, not the user's primary group, so that's quite useful. But setgid on a normal, non-executable file doesn't do anything useful. I would suggest removing setgid from all files (but leave it on directories) like this:
Or you could force a set of known permissions on files and directories using:
And next time, rather than using
so that it only affects the directories. Background
I think the idea is that the yellow and black highlighting is meant to make you look carefully at them, to make sure they are the ones you expect, and not some new file that was installed by a malicious user or a rootkit or something. Run
to see some examples of programs that use those permissions. On my system it lists
For example, the
means that the If after all that, you still really want to change the colors, try something like this:
Where you put it depends on your setup, but at the end of ~/.zshrc should do it. For some reason, removing the |
|||||||
|
LSCOLORS="" ls -ltr? – mpez0 Apr 19 '11 at 11:21LS_COLORS=, notLSCOLORS=. Seeman dircolors. – Mikel Apr 20 '11 at 22:41