lsd: Missing colors after installing nerd-fonts

I recently moved to a new machine, and as a result, icons were missing in the output of lsd (instead I saw a [?] icon).

Today I followed the instructions in this comment to install and configure nerd-fonts for iTerm2, which worked. However, now the color output of lsd is gone.

I tried uninstalling and reinstalling lsd (with brew uninstall lsd and brew install lsd), but that did not result in a change.

Current output: CleanShot 2020-05-04 at 07 03 27@2x
iTerm2 settings: CleanShot 2020-05-04 at 07 04 08@2x

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 34 (18 by maintainers)

Most upvoted comments

For those who don’t want to wait, here is an approx. of the old theme: LS_COLORS='di=38;5;33:ln=38;5;44:so=38;5;44:pi=38;5;44:bd=38;5;44:or=38;5;124:cd=38;5;172:ex=38;5;40:fi=38;5;184:no=38;5;245'

Preview: image

This is based on src/color.rs/get_light_theme_colour_map(), which was responsible for the default color scheme back in 0.16.0. I don’t think it’s actually used anywhere now.

There are still some differences between 0.18.0 with this LS_COLORS configuration and 0.16.0, which cannot be configured using LS_COLORS only, but were hardcoded in source code. For example, the permission settings are colored differently.

0.16.0: 0.16.0

0.18.0 with this LS_COLORS configuration: 0.18.0 with LS_COLORS

Couple of thoughts:

  1. All colors could be made configurable; LS_COLORS does not cover them all
  2. All colors not covered by LS_COLORS could default to 0.16.0’s style for users convenience
  3. An --old_color_scheme flag that would switch color scheme to already available mapping generated in get_light_theme_colour_map() would be a nice touch
  4. README.md is outdated

Happens here too, no LS_COLORS set. It seems to me that lsd uses a different shade of blue for folders (in my case, see screenshots) than the normal ls, and when switching to the solarized theme, that color gets clobbered.

So, I’d say the issue is a combination between lsd and the solarized theme.

Regular iTerm theme (dark background):

Screenshot 2020-05-11 at 08 23 49

Solarized theme: Screenshot 2020-05-11 at 08 24 06

thanks @meain ! I thought that colors.theme changed everything! my bad.

Thanks again!

You cannot control the colors of files and folders with the theme, only the other blocks.

@foxale That would be a good idea. Will add a way to reproduce the old colors using LSCOLORS in the readme.

yes, that is exactly how I set it. And no unsetting did not work. EDIT: Never mind. I was accidently setting that value to $ZSH instead of $LS_COLORS. No, this did not resolve the issue

Not sure how you got “not found” error. How are you setting LS_COLORS? Just in case, this is how you would do it. export LS_COLORS='rs=0.....9'

Also, did unset LS_COLORS && lsd work?