|
| From: | Kirk Kelsey |
| Subject: | feature request / patch: ls colors for directories |
| Date: | Wed, 12 Dec 2007 13:49:43 -0500 |
I've attached a patch that allows a directory to match an LS_COLOR defined extension. Directory extensions are kept separate from file extensions by including a final '/' so that a directory named 'foo.txt' would not be colored as a text file. As an example, including "*.app/=00;32" in the LS_COLORS environment variable will cause 'ls --color' to make any directory with a name ending in ".app" to be colored green without changing the behavior for other directories or files with names ending in ".app"
Thanks, Kirk
ls.c.diff
Description: Binary data
| [Prev in Thread] | Current Thread | [Next in Thread] |