Tumbleweed grep --colors=auto (unreadable filenames, purple on black) - easy fix
David C Rankin <[email protected]>
| Newsgroups | gmane.linux.suse.general |
|---|---|
| Message-ID | <[email protected]> |
All, Currently Tumbleweed grep --color=auto outputs filename color as dark-purple on black (Linux colors). All of grep colors can be set with the environment variable GREP_COLORS and the list is given in man grep under GREP_COLORS surprising enough. You can use 256 terminal colors if your terminal supports them. To change the dark-purple to a readable light-purple (both on white or black backgrounds), simply add the following export to your .bashrc, e.g. ## grep auto colors export GREP_COLORS='fn=38;5;13' The 38;5; is just the 256 foreground prefix and the 13 is the color. Background prefix is 48;5; Hopefully this helps someone else -- and make it easier to find 2 years from know when I've forgotten :) -- David C. Rankin, J.D.,P.E.