Is there a way to control the color output of ls to highlight specific permissions on files? (e.g. write permissions).

Any options in LS_COLORS that would do this? (the image above is from Dired+ on Emacs 24.1, not from the output of ls)
|
|
|
You can always put |
|||
|
|
|
If You can still use grep:
It will highlight all |
|||
|
|
I've just tried it, and this is actually possible with a little Ruby program called acoc (Arbitrary Command Output Colourer). It can be used to intercept output from any terminal program (colourised output in A couple of caveats to be aware of if you go down this route:
|
|||
|
|
|
Don't know if this is what you are looking for. Some time ago I wrote a script that works as "ls" but shows some nice colors for permissions in the output. You can read about it here, download it here. I keep it in /usr/local/bin. If you're a debian|ubuntu based distro user, replace #!/bin/sh to #!/bin/bash in the script;) Ask, if you have questions. |
||||
|
|