Skip to content

Dircolors

December 10, 2014

dircolors is something I would like to hate. It is so nice, though. I found some handy workarounds if you find yourself straining to see some of the colors because you, perhaps, opted for a light background color.

There are a few ways to go about this depending on your flavor of system.

First, you will need the existence of a light background dircolor file. Many times this can be found as /etc/DIR_COLORS.lightbgcolor .

One way to get this to work is to set an environment variable

eval `dircolors /etc/DIR_COLORS.lightbgcolor`

Another way to get the behavior, on some flavors of *nix, is to link this file to a dot file in your home directory.

ln -s /etc/DIR_COLORS.lightbgcolor ~/.dir_colors

Advertisements

From → Technology

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: