DEV Community

Fernando Tricas García
Fernando Tricas García

Posted on • Edited on

1

Better colors for `ls` in dark terminals

I'm using a dark theme in my terms but ls --color shows a dark blue color for directories, that make it difficult to read. In How to Change Colors on LS in Bash
but I didn't want to mess with each color, I was looking for something like a 'schema', so I discovered dircolors and the [dircolors solarized][https://github.com/seebi/dircolors-solarized] repo.

Mainly, you can clone the repo git clone https://github.com/seebi/dircolors-solarized and then follow these instructions:

General Instructions

...

eval `dircolors /path/to/dircolorsdb`

To activate the theme for all future shell sessions, copy or link that file to ~/.dir_colors, and include the above command in your ~/.profile (for bash) or ~/.zshrc (for zsh).

You are going from this:

Alt Text

to this:

Alt Text

And some more things, of course. But this is all what I wanted. A small difference that will help me to see things again.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more