[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make the colors different for a symbol link pointing to a fil

From: Eric Blake
Subject: Re: How to make the colors different for a symbol link pointing to a file and symbol link pointing to a dir?
Date: Wed, 30 Dec 2009 21:02:16 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090812 Thunderbird/ Mnenhy/

Hash: SHA1

According to Peng Yu on 12/30/2009 8:34 PM:
>> I wouldn't be on for adding more color combinations to handle
>> cases like this. Perhaps a combination of "LINK target" with the
>> -F option would suffice. That would use the color of the target
>> while also distinguishing symlinks with an appended "@".
> I'm not sure if you understand me correctly.
> I tried -F. It will append all the symlinks with '@' no matter whether
> they point to files or directories. I want to distinguish these two
> cases somehow whether by color or by appended symbol. But -F can help
> me distinguish the two case.

Use -F to distinguish between symlinks and other files via the appended @.
 Use "LINK target" to distinguish between symlinks to directories vs.
symlinks to files via the color.  So using both pieces together gives you
a full picture of what a particular name represents, with no new code needed.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]