1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

COLORDIR hierarchy

Discussion in 'Support' started by Steve Fabian, Nov 17, 2010.

  1. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    QUESTION:
    The "Directory Colors" option and the COLORDIR variable allow specifying colors based on attributes that are not mutually exclusive, e.g., RDONLY and HIDDEN. Please document how the color is chosen for a hidden read-only directory entry. Does it depend on the order of the respective entries in the option or the variable (if defined), or is there a prioritization by TCC's code?
    Please cf. with suggestion sent to tc_suggestions.
    --
    Steve
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,726
    Likes Received:
    80
    As the help says, it's done left-to-right, and it takes the first matching entry.

    There's an example in the help for hidden directories:

    set colordir=dirs .and. hidden:blue

    Just add another .and. for rdonly.
     

Share This Page