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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

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

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay